

def test_geometry(self):
    assert (type(self.df.geometry) is GeoSeries)
    df2 = GeoDataFrame({
        'coords': [Point(x, y) for (x, y) in zip(range(5), range(5))],
        'nums': range(5),
    }, geometry='coords')
    assert (type(df2.geometry) is GeoSeries)
    assert (type(df2['coords']) is GeoSeries)

dataset/ETHPy150Open geopandas/geopandas/geopandas/tests/test_types.py TestDataFrame.test_geometry/original