我正在尝试使用hvplot重新创建数据着色器人口普查分类示例。
import cartopy.crs as ccrs
import datashader as ds
import dask.dataframe as dd
import hvplot.dask
ddf = dd.read_parquet("census2010.parq").persist()
ddf.hvplot.points(x="easting", y="northing",
aggregator=ds.count_cat("race"),
datashade=True,
crs=ccrs.GOOGLE_MERCATOR)
不幸的是,我得到:
WARNING:param.dynamic_operation: Callable raised "ValueError('Aggregation column race not found on :Points [easting,northing] element. Ensure the aggregator references an existing dimension.',)".