Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow integer aggregate values of zero #142
Comments
jbednar
added
the
wishlist
label
Apr 15, 2016
jbednar
referenced this issue
Dec 19, 2018
Open
Bokeh and HoloViews datashader support to-do list #669
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jbednar commentedApr 14, 2016
For floating-point aggregate values, datashader uses NaN to indicate masked bins, i.e. bins with no data. Integers have no agreed-upon NaN value, and for now the
interpolate
andcolorize
methods of transfer_fn.py treat zero as the masked value. Similarly, for Boolean arrays,False
is taken as the mask value, and only non-False bins are used.For integer counts, zero does make a good mask value -- if there is no data for that cell (zero counts), mask it out. But for non-count integer-valued data, zero may have a specific interpretation other than "no data", and so it would be good to either allow users to specify a different mask value (perhaps
-sys.maxsize
?) or provide some other way to do masking.