New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow integer aggregate values of zero #142

Open
jbednar opened this Issue Apr 14, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@jbednar
Copy link
Collaborator

jbednar commented Apr 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 and colorize 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment