SpatioTemporal / STAREPandas

STAREpandas adds SpatioTemporal Adaptive Resolution Encoding (STARE) support to pandas DataFrames. https://starepandas.readthedocs.io/en/latest/
MIT License
4 stars 1 forks source link

stare_intersects returns wrong dataframe indices #118

Closed NiklasPhabian closed 10 months ago

NiklasPhabian commented 1 year ago

stare_intersects will always return sequential indices starting from zero. This breaks when a dataframe has been subset by other means and thus does not have sequential indices

michaelleerilee commented 1 year ago

How about re-indexing the intermediate result as a workaround?

NiklasPhabian commented 1 year ago

Yes exactly that is the workaround. One has to reindex after subsetting. Just annoying when you forget and get an unsuspected error.

NiklasPhabian commented 10 months ago

duplicate of #86