Skip to main content
Loading page…
Python Mastery
Chapter 42
Lesson 3 of 4
Lazy Evaluation & GroupBy
Contents
Notes
Tutor
Concept
Eager vs Lazy: Two Evaluation Modes
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
24 min
9 activities
0 of 9 done
In this lesson
1
Eager vs Lazy: Two Evaluation Modes
2
scan_csv, LazyFrame, and .collect()
3
GroupBy and Aggregations
4
Joins Between DataFrames
5
group_by Order Is Non-Deterministic
6
Lazy Query Execution Pipeline
7
Check: When Does Lazy Mode Read Data?
8
Match GroupBy Aggregation Expressions
9
Eager vs Lazy: Categorise These Operations
Objectives
Learner can explain the difference between eager and lazy evaluation
Learner can create a lazy query with scan_csv and collect results
Learner can perform grouped aggregations with group_by().agg()
Learner can perform inner, left, and cross joins between DataFrames
Learner can explain why lazy evaluation scales better to large datasets
Further reading
Polars documentation
Chapter 42 · Lightning-Fast DataFrames with Polars
Why Polars
The Expression API
Lazy Evaluation & GroupBy
Polars vs Pandas
Previous: The Expression API
Next: Polars vs Pandas