added aggregate notebook and changed data source#46
Closed
jorammutenge wants to merge 2 commits intomarimo-team:mainfrom
Closed
added aggregate notebook and changed data source#46jorammutenge wants to merge 2 commits intomarimo-team:mainfrom
jorammutenge wants to merge 2 commits intomarimo-team:mainfrom
Conversation
Haleshot
reviewed
Mar 3, 2025
Contributor
Haleshot
left a comment
There was a problem hiding this comment.
Great notebook overall! Thanks for keeping it crisp and relevant to the topic at hand ❤️
Just left a few comments above; if you could hyperlink relevant words to the appropriate Polars docs webpage, that would be great.
| # Aggregations | ||
| _By [Joram Mutenge](https://www.udemy.com/user/joram-mutenge/)._ | ||
|
|
||
| In this notebook, you'll learn how to perform different types of aggregations in Polars, including grouping by categories and time. We'll analyze sales data from a clothing store, focusing on three product categories: hats, socks, and sweaters. |
Contributor
There was a problem hiding this comment.
A hyperlink to the relevant Polars documentation webpage for the words "types of aggregation" would be nice. For example: https://docs.pola.rs/user-guide/expressions/aggregation/
Comment on lines
+38
to
+40
| df = (pl.read_csv('https://raw.githubusercontent.com/jorammutenge/learn-rust/refs/heads/main/sample_sales.csv', try_parse_dates=True) | ||
| .rename(lambda col: col.replace(' ','_').lower()) | ||
| ) |
Contributor
There was a problem hiding this comment.
Thanks! This makes it WASM-compatible and works without a hitch and I can directly use our feature.
polars/12_aggregations.py
Outdated
Comment on lines
+354
to
+356
| @app.cell | ||
| def _(): | ||
| return |
Contributor
There was a problem hiding this comment.
Empty cell which can be deleted.
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.
📝 Summary
📋 Checklist
--sandboxREADME.md