spatialpandas icon indicating copy to clipboard operation
spatialpandas copied to clipboard

error running Spatialpandas hvplot example

Open KarenChen9999 opened this issue 4 years ago • 2 comments

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 avatar Feb 04 '21 00:02 KarenChen9999

just tested with older geopandas version 0.8.0 and it works ok

KarenChen9999 avatar Feb 04 '21 00:02 KarenChen9999

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

ozak avatar Sep 28 '21 22:09 ozak