Closed ahuang11 closed 5 years ago
import geopandas as gpd import hvplot.pandas
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) world.hvplot(groupby='continent', width=500)
/mnt/c/Users/sephi/GOOGLE~1/Bash/geoviews/geoviews/data/geopandas.py in validate(cls, dataset, vdims)
81 'coordinates but %d dimensions were found '
82 'which did not refer to any columns.'
---> 83 % (type(dataset).__name__, len(geom_dims)), cls)
84 not_found = [d.name for d in dataset.dimensions(dim_types)
85 if d not in geom_dims and d.name not in dataset.data]
DataError: Expected Dataset instance to declare two key dimensions corresponding to the geometry coordinates but 0 dimensions were found which did not refer to any columns.
new error
Is this still an issue? I think c
is the appropriate option to use in this case:
I think the original issue came up because polygons doesn't support the option groupby:
KeyError: "Dimension 'continent' not found."