Reason or Problem
examples/pharmacy-deserts.ipynb imports datashader and uses Canvas().points()/Canvas().polygons() with ds.mean/ds.max aggregation, plus shade/stack and the inferno colormap for rendering.
Proposal
- Remove the datashader imports.
- Replace the
Canvas point/polygon rasterization with arr.xrs.rasterize(...), mapping the ds.mean/ds.max aggregation onto the column= and merge= parameters.
- Replace
shade/stack and the inferno colormap with matplotlib (matplotlib has an inferno colormap).
- Update any prose that mentions datashader.
- Re-execute the notebook so outputs regenerate cleanly.
Done when
- The notebook runs top to bottom with no datashader import and produces the expected plots.
Part of removing datashader as a dependency; final packaging removal is tracked in #3450.
Reason or Problem
examples/pharmacy-deserts.ipynbimports datashader and usesCanvas().points()/Canvas().polygons()withds.mean/ds.maxaggregation, plusshade/stackand theinfernocolormap for rendering.Proposal
Canvaspoint/polygon rasterization witharr.xrs.rasterize(...), mapping theds.mean/ds.maxaggregation onto thecolumn=andmerge=parameters.shade/stackand theinfernocolormap with matplotlib (matplotlib has aninfernocolormap).Done when
Part of removing datashader as a dependency; final packaging removal is tracked in #3450.