Loading tutorials
pl.col, select, filter, with_columns and group_by. It also assumes you know that a LazyFrame builds a plan that collect() runs. Here you will see why expressions, not Python code, are what lets the optimiser reason about a quer4 min readpl.col, select, filter, with_columns, group_by). It also assumes you know the difference between eager and lazy execution from the earlier chapters. Here you will learn the two ways to build a LazyFrame from data already4 min readpl.col, select, filter, with_columns, group_by). You should also know what eager and lazy execution mean at a high level. Here you will look at what a LazyFrame does when you call methods on it, and what `c4 min readpl.col, select, filter, group_by). It also assumes you know what a CSV file and a Parquet file are. You should already know that a LazyFrame records a plan and that collect() runs it.4 min readLazyFrame and call collect() on it. It also assumes you know what a schema is: an ordered mapping from column names to data types. The question here is how to read the schema of a lazy query's result without running the query.4 min readLazyFrame holds before you call collect(). It assumes you can write Polars expressions (pl.col, select, filter, with_columns, group_by) and that you know how lazy() and collect() behave. By the end you should be able to sketch the tree behind any lazy q5 min readLazyFrame records a query without running it. You should also know that collect() runs it. Here you will learn to read the text that explain() prints and to spot what the optimiser changed.4 min readpl.col, select, filter, with_columns, group_by). It also assumes you know a LazyFrame records a plan and that collect() runs it. Here you will learn what kinds of rewrites the optimiser makes, and the rules that keep your results unc5 min readpl.col, filter, group_by and with_columns. It also assumes you know what a LazyFrame is and how to read a plan with explain() from the earlier chapters. Here you will learn what predicate pushdown does, when it applies, and what st5 min readpl.col, select, filter, with_columns, group_by) and have read a CSV or Parquet file before. It also assumes you have seen explain() output. You should know that a LazyFrame records a plan and that collect() runs it.5 min readLazyFrame with scan_csv or scan_parquet, how explain() prints a plan, and the idea of predicate and projection pushdown from earlier chapters. Here we look at the third pushdown, which applies to head, limit, and slice.5 min readLazyFrame, call collect(), and read explain() output, as covered in earlier chapters. Predicate and pr5 min readcollect() and read explain() output, as covered in earlier chapters. It covers one optimisation that works inside a single expression context, and a second that works across several queries.5 min readexplain() output and know the basic pushdown optimisations: predicate, projection and slice. It also assumes you are on Polars 1.x. Here you will learn which code the optimiser cannot see into, what that costs, and how to rewrite it.4 min readscan_parquet, filter, group_by and agg, and that you can read explain() output as covered earlier in this tutorial. Here you will use that knowledge to check what the optimiser did, confirm it did not change your results, and find out wh4 min readLazyFrame with scan_csv or scan_parquet. It also assumes you have read explain() output. The code uses a recent Polars 1.x release, because the streaming API changed across versions. If a call below is rejected, check your ins5 min read