Repository navigation
Show how to calculate rolling means within groups - #3550
Merged
Merged
Conversation
Assisted-by: Codex
Member
|
I am hesitant to merge this as RollingFunctions.jl does not seem to have received any activities since 2024. (I know we mention it, but are we sure it will be maintained in the future?). |
Contributor
Author
|
The last release I could find was in November 2024, and I don’t know whether it’ll keep getting updates. Would a version using just DataFrames and Statistics be useful? |
Member
If this is easy to do this would be preferable. Thank you! |
Contributor
Author
|
I’ve drafted an example using just DataFrames and Statistics. I still need to check how it renders in the manual before I push it. |
bkamins
reviewed
Nov 10, 2026
Co-authored-by: Bogumił Kamiński <bkamins@sgh.waw.pl>
bkamins
approved these changes
Nov 10, 2026
bkamins
reviewed
Nov 10, 2026
bkamins
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This example sorts readings by sensor and day, calculates a rolling mean with DataFrames and Statistics, and keeps the last day of each window. It adds no dependency.
Fixes #3163.
The full manual and doctests passed on Julia 1.10.13. I also checked the group keys, window dates and means against the expected rows.