-
Notifications
You must be signed in to change notification settings - Fork 37
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
ADD: calculate_percentage function. #811
Conversation
I'm not sure why the hashes aren't matching... |
Rerunning one more time with the PR now for arm-test-data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zssherman this looks good! The only thing I can think of is adding in an example that would show how to use the percentages returned to create a pie chart. Thoughts?
@AdamTheisen Yeah I can do that! It's a one liner that I can add in the example. Once the piechart function is actually added, i can swap out the one line in the example with the new function |
@AdamTheisen Example has been added. |
Once this is approved, we can merge and I'll rerun Bobby's PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zssherman looks good!
This function allows the user (ex: aerosol data) to provide fields and calculate the percentage of that field in a volume. The code also checks for invalid numbers if the user provides a threshold. User can also provided a specific time, a range of times, or get an mean of the whole dataset.
This function will eventually be used for the PieChart function I'm working on.