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

quantiles calculations #507

Merged
merged 2 commits into from
Jan 25, 2024
Merged

quantiles calculations #507

merged 2 commits into from
Jan 25, 2024

Conversation

khider
Copy link
Member

@khider khider commented Jan 20, 2024

Add functionality to calculate the quantiles on time instead of values. Also added capability to export an ensemble series to a pandas dataframe or numpy array. Useful to get the quantiles in a more analysis-ready format.

Added docstrings and tests for all functions (note: there was no test for quantiles)

@khider khider requested a review from CommonClimate January 20, 2024 03:25
Copy link
Collaborator

@CommonClimate CommonClimate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I like that it returns another EnsembleSeries, and I like that there is also the option to export to dataframe or NumPy array. Please make sure to create an issue in pyleotutorials to add that to the Ensembles tutorial.

re: quantiles, I have 2 requests:

  1. As I mentioned somewhere on Slack, "mode" should be "axis", for consistency with NumPy, but also because mode is a statistically loaded term. Let's stay away from it.
  2. the docstring incorrectly mentions "If mode is 'paleo'". I believe it should say "If axis is set to 'value'"...

@khider
Copy link
Member Author

khider commented Jan 25, 2024

Changes made

@CommonClimate CommonClimate merged commit fbacdf3 into master Jan 25, 2024
1 check passed
@CommonClimate CommonClimate deleted the age-quantile branch January 25, 2024 22:45
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

Successfully merging this pull request may close these issues.

2 participants