Loading tutorials
pl.col, select, filter, with_columns and group_by. You don't need to know how the optimiser works. That comes in later chapters.2 min readpl.col, select, filter and with_columns. It explains why those expressions matter for lazy queries.2 min readpl.col, select, filter, with_columns). You should also know how to build a DataFrame. Here you learn the two ways to create a LazyFrame from data that is already in memory.2 min readpl.col, select, filter, with_columns, group_by). It also assumes you have seen the difference between eager and lazy execution. Here you will see what a LazyFrame does with each method call and when work actually h2 min readLazyFrame and call collect(). It also assumes you know the expression API (pl.col, filter, select). Here you will see how file scans differ from file reads, and why that matters to the optimiser.2 min readLazyFrame and know that collect() runs it. A schema is the mapping from column names to data types. Polars can often work out the schema of a lazy query from the plan alone, so you get the answer without processing the data.2 min readpl.col, filter, group_by, agg) and have seen lazy() and collect(). It explains what a LazyFrame stores while it waits to run.2 min readpl.col, filter, select, group_by) and have built a LazyFrame before. Here you learn to read the plan that explain() prints, and to compare the plan as you wrote it with the plan Polars will actually run.2 min readpl.col, select, filter, with_columns, group_by). It also assumes you have seen that a LazyFrame records a plan and that collect() runs it.2 min readfilter, select and with_columns, and that you know what scan_parquet and explain() do. A predicate is a condition that is true or false for each row, such as pl.col("country") == "NO". Predicate pushdown means the optimiser moves2 min readselect, filter, with_columns) and have seen scan_parquet and explain(). Projection pushdown is one of the optimiser rewrites described earlier in this tutorial.2 min readcollect(), and read basic explain() output. See the earlier chapters on those topics if not.2 min readexplain() output and know what a LazyFrame is. Two quieter optimiser steps work on the expressions inside a plan. Expression simplification rewrites expressions into cheaper equivalents. Type coercion makes the data types in an expression agree.2 min readexplain() output, and know that a LazyFrame only runs on collect(). It covers two ways Polars avoids repeating work: common subexpression elimination (CSE) inside one query, and collect_all across several queries.2 min readexplain() output and know what predicate and projection pushdown do. The optimiser rewrites a plan only where it understands every step. A step it cannot inspect is an optimisation barrier, and that step limits what it can move around.2 min readexplain() plan, as covered in earlier chapters. You will compare an optimised query with the same query run without optimisations. This confirms that the optimiser keeps results the same, shows where it saves work, and helps yo2 min readscan_csv, scan_parquet, filter, group_by and collect() from the earlier chapters. It also assumes you know that a LazyFrame records a plan and that collect() runs it.2 min read