Migrate pharmacy-deserts example off datashader
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Open examples/pharmacy-deserts.ipynb and inspect the cells importing datashader and using Canvas, shade, stack, and inferno. Replace those operations with arr.xrs.rasterize and matplotlib as described, update prose references, then re-execute the notebook. Done means it runs top to bottom without a datashader import and produces the expected plots.
Written by the indexing model from the issue text.
Description
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
Canvaspoint/polygon rasterization witharr.xrs.rasterize(...), mapping theds.mean/ds.maxaggregation onto thecolumn=andmerge=parameters. - Replace
shade/stackand theinfernocolormap with matplotlib (matplotlib has aninfernocolormap). - 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.
- Dominant language
- Python
- Stars
- 972
- Forks
- 92
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xarray-contrib/xarray-spatial
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
xarray-contrib/xarray-spatial#3726 ·
-
api area:surface bug severity:medium sweep-api-consistency
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
xarray-contrib/xarray-spatial#3712 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
xarray-contrib/xarray-spatial#3710 ·
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
xarray-contrib/xarray-spatial#3707 ·
-
area:surface documentation user-guide-example
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
xarray-contrib/xarray-spatial#3464 ·
All issues in xarray-contrib/xarray-spatial
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·