Skip to content

Show how to calculate rolling means within groups - #3550

Merged
bkamins merged 4 commits into
JuliaData:mainfrom
Sinkleberg:codex/grouped-rolling-means
Nov 11, 2026
Merged

bkamins merged 4 commits into
JuliaData:mainfrom
Sinkleberg:codex/grouped-rolling-means

Conversation

@Sinkleberg

@Sinkleberg Sinkleberg commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

@bkamins bkamins added the doc label Nov 6, 2026
@bkamins

bkamins commented Nov 6, 2026

Copy link
Copy Markdown
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?).

@Sinkleberg

Copy link
Copy Markdown
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?

@bkamins

bkamins commented Nov 7, 2026

Copy link
Copy Markdown
Member

Would a version using just DataFrames and Statistics be useful?

If this is easy to do this would be preferable. Thank you!

@Sinkleberg

Copy link
Copy Markdown
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.

Comment thread docs/src/man/split_apply_combine.md Resolved
Comment thread docs/src/man/split_apply_combine.md Resolved
Comment thread docs/src/man/split_apply_combine.md Resolved
Co-authored-by: Bogumił Kamiński <bkamins@sgh.waw.pl>
Comment thread docs/src/man/split_apply_combine.md Resolved
@bkamins
bkamins merged commit 1bf856d into JuliaData:main Nov 11, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explain in the manual how to use rolling functions with DataFrames.jl

2 participants