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

Add feature to aggregate timeseries at sub-annual time resolution #322

Merged
merged 5 commits into from May 11, 2020

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Jan 20, 2020

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Description of PR

This PR implements a first version of an aggregate_time() feature: it applies a function (default sum) data given at a sub-annual time resolution to a yearly or more aggregated sub-annual time slide. The PR adds a new tutorial for this feature, to be extended in future PRs.

Examples:

df.aggregate_time(<variable>)  # to get the sum of `variable` over the entire year
df.aggregate_time(<variable>, value='summer', components=['june', 'july', 'august'],
    method='max')  # to get the maximum of `variable` over the summer months

pyam/_aggregate.py Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jan 20, 2020

Coverage Status

Coverage increased (+0.08%) to 86.37% when pulling 082078a on feature/aggregate_time into 8e1393e on master.

@danielhuppmann danielhuppmann marked this pull request as ready for review January 21, 2020 09:23
@danielhuppmann
Copy link
Member Author

rebased following release v0.5.0

@gidden
Copy link
Member

gidden commented May 11, 2020

Updated release notes, will merge when CI passed. Thanks a bunch here @danielhuppmann !

@gidden gidden merged commit ef2f69a into master May 11, 2020
@gidden gidden deleted the feature/aggregate_time branch May 11, 2020 16:27
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.

None yet

4 participants