Closed ianthomas23 closed 1 year ago
Merging #1237 (38c83f6) into main (5a89820) will decrease coverage by
0.15%
. The diff coverage is71.59%
.
@@ Coverage Diff @@
## main #1237 +/- ##
==========================================
- Coverage 83.52% 83.37% -0.15%
==========================================
Files 35 35
Lines 8778 8832 +54
==========================================
+ Hits 7332 7364 +32
- Misses 1446 1468 +22
Impacted Files | Coverage Δ | |
---|---|---|
datashader/reductions.py | 77.87% <69.51%> (-0.76%) |
:arrow_down: |
datashader/compiler.py | 88.65% <100.00%> (+0.05%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
After rebase tests are failing with some bokeh-panel incompatibility when running examples. That is nothing to do with this PR, so merging this and will deal with example problem separately.
Fixes #1210.
This adds support for categorical
where
reductions on CPU and GPU, with and without Dask.An example is
This returns a 4D
xarray.DataArray
of shape(ny, nx, ncat, n)
containing for each pixel and category the indexes of the 3 rows in the suppliedDataFrame
that have the maximum values of the"mass"
column.To return the values from another column instead of row indexes this would be
We can replace
max_n
in this example withmax
,min
,first
,last
,min_n
,first_n
, orlast_n
.Support is also added for
and the
last
,first_n
andlast_n
equivalents as these are implemented usingwhere
under certain circumstances (GPU and/or Dask).