Skip to content

added aggregate notebook and changed data source#46

Closed
jorammutenge wants to merge 2 commits intomarimo-team:mainfrom
jorammutenge:groupby
Closed

added aggregate notebook and changed data source#46
jorammutenge wants to merge 2 commits intomarimo-team:mainfrom
jorammutenge:groupby

Conversation

@jorammutenge
Copy link
Contributor

@jorammutenge jorammutenge commented Mar 3, 2025

📝 Summary

📋 Checklist

  • I have included package dependencies in the notebook file using --sandbox
  • If adding a course, include a README.md
  • Keep language direct and simple.

@Haleshot Haleshot mentioned this pull request Mar 3, 2025
3 tasks
Copy link
Contributor

@Haleshot Haleshot left a comment

Choose a reason for hiding this comment

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

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

Choose a reason for hiding this comment

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

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())
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! This makes it WASM-compatible and works without a hitch and I can directly use our feature.

Comment on lines +354 to +356
@app.cell
def _():
return
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty cell which can be deleted.

@jorammutenge jorammutenge deleted the groupby branch March 4, 2025 01:15
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