Broken usage of NDFrameIndexer in geopandas #27258
Labels
Dependencies
Required and optional dependencies
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
xref #27223 (comment)
The change in that PR broke a test in geopandas. We are using some indexing internals in geopandas that were relying on an InvalidIndexError being catched there (and the PR changed it to only TypeError and KeyError.
A small reproducible example without needing geopandas (but it is dummy code, not doing something useful):
The below passes on 0.24.2, but gives an error now on master.
The actual code in geopandas is:
https://github.com/geopandas/geopandas/blob/7c66c93f0f76de53615c02810e817ef57fb6a8de/geopandas/base.py#L734-L761
I know this is quite internal code of pandas that is being used here, so we should think about making this cleaner, but short term it would be nice to fix this.
The text was updated successfully, but these errors were encountered: