Skip to content
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

handle nulls in k_ring_smoothing #22

Open
benmcdermott opened this issue Aug 23, 2023 · 0 comments
Open

handle nulls in k_ring_smoothing #22

benmcdermott opened this issue Aug 23, 2023 · 0 comments

Comments

@benmcdermott
Copy link

If you apply k_ring_smoothing on a dataframe that contains nulls (created by e.g. geo_to_h3_aggregate), then the nulls are mapped to 0. This is probably unwanted behaviour.

Could nulls be handled in this function by doing something like this?

  • returning an aggregated value where the k-ring is completely non-null (current method)
  • returning an aggregated value where there are a mix of nulls and non-nulls in the k-ring
  • returning null where all k-ring vals are null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant