Closed karosc closed 4 years ago
Thanks for the bug report. Please also report the HoloViews and GeoViews versions you are using.
as reported by the __version__
property of each module....
GeoViews 1.6.6 HoloViews 1.12.7 bokeh 1.4.0 pandas 0.24.2
After some investigation, I have found this may be a problem with geopandas. The issue comes when trying to use iloc with a GeoDataFrame that only has a single column for geometry. I was able to reproduce the error with the following code:
import geopandas as gpd
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
gdf=gpd.GeoDataFrame(world.geometry)
gdf.iloc[0]
I was able to reproduce this problem using geopandas 0.7 and pandas 0.24.2, but it goes away with pandas 0.25.3 or 1.0.1. So it sounds like there should be an issue filed on geopandas about appearing to require pandas 0.25 or later. Meanwhile, I'll close this issue as not being something geoviews can address.
I was playing around with the Geometries Exampe and found that if I import geopandas (version 0.7.0), I start getting an error when using the bokeh back end. The code cell and resulting error are below. To be clear, this error does not happen if I do not import geopandas. Only if I add
import geopandas as geo
to the top of the notebook does this happen.I installed holoviz from conda with
conda install -c pyviz holoviz
and then geopandas from conda as well withconda install geopandas
.