holoviz / spatialpandas

Pandas extension arrays for spatial/geometric operations
BSD 2-Clause "Simplified" License
308 stars 24 forks source link

error running Spatialpandas hvplot example #58

Open KarenChen9999 opened 3 years ago

KarenChen9999 commented 3 years ago

I had some issues running the exmaple using spatialpandas and hvplot to plot million geometries. These are the codes that i am running;

spd_world = spd.GeoDataFrame(world)
spd_world.hvplot(datashade=True, project=True, aggregator=ds.count_cat('continent'), color_key='Category10')

and the error i got is:

WARNING:param.dynamic_operation: Callable raised "TypeError("Cannot interpret 'MultiPolygonDtype(float64)' as a data type")".
TypeError: Cannot interpret 'MultiPolygonDtype(float64)' as a data type

my packages are: geopandas 0.8.1 datashader 0.12.0 holoviews 1.14.1 spatialpandas 0.3.6 hvplot 0.7.0

I am not sure how to resolve this issue. any suggestions please?

KarenChen9999 commented 3 years ago

just tested with older geopandas version 0.8.0 and it works ok

ozak commented 2 years ago

Same issue....different versions of packages geopandas 0.9.0 geopandas-base 0.9.0 datashader 0.13.0 holoviews 1.14.6 spatialpandas 0.4.0 hvplot 0.7.3