[BUG]: .reset_index()
doesn't work with GeoSeries
anymore
#849
Labels
3 - Ready for Review
Ready for review by team
bug
Something isn't working
non-breaking
Non-breaking change
Version
22.12
On which installation method(s) does this occur?
Rapids-Compose
Describe the issue
In working out #848 I tried resetting the index before using
align=False
.mixed_geoseries[0:3].reset_index()
results in an error.mixed_geoseries[0:3].reset_index(drop=True)
returnsNone
instead of aGeoSeries
.The error in the first case is that
cudf
doesn't understand thegeometry
type. Hopefully there is an internals-based workaround, like acudf.frame
method I can inherit from and overload, to avoid this issue. I think that.reset_index()
worked when aGeoSeries
was a hiddenint
type column, which resetting that is probably the easiest, though suboptimal, fix.The error in the second case is unclear.
Use the
mixed_geoseries
object from the minimum reproducer in #848.Minimum reproducible example
mixed_geoseries[0:3].reset_index() mixed_geoseries[0:3].reset_index(drop=True)
Relevant log output
Environment details
No response
Other/Misc.
No response
The text was updated successfully, but these errors were encountered: