

def test_fancy(self):
    idx = (self.df.index.to_series() % 2).astype(bool)
    assert (type(self.df[idx]) is GeoDataFrame)

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