Loading tutorials
pl.col, filter, with_columns, group_by, and agg. It also assumes you know what CSV and Parquet files are. The previous chapter showed why loading a huge file into memory fails. Here you learn the first tool for avoiding that: describing the 6 min readpl.col, filter, with_columns, group_by), and know the difference between CSV and Parquet. It covers how scan_csv and scan_parquet differ from read_csv and read_parquet, what a scan actually does, and the errors5 min readscan_parquet and scan_csv. Here you will learn to print a lazy query's plan, read it, and use it to check that Polars reads only the data you need. That check matters before you run anything on a file larger than memory.6 min readpl.col, filter, select, with_columns) and that you know the difference between a lazy scan and an eager read from earlier in this tutorial. It explains the two optimizations that decide how much data a lazy query reads at all, before the6 min readpl.col, filter, with_columns, and group_by, and have met lazy queries and scan_* functions. You will learn the working model behind the streaming engine: how it splits data into chunks, how those chunks move th6 min readpl.col, filter, group_by). It also assumes you can build a lazy query with scan_parquet or scan_csv, as covered in earlier chapters. Here you run that query so Polars processes it in chunks instead of loading all the input 5 min readscan_csv or scan_parquet, and that you know what collect(engine="streaming") does. Here you will learn how to stop a query's output from ever becoming an in-memory DataFrame.5 min readscan_* functions, filter, select, and group_by. It also assumes you know what CSV and Parquet files are. The earlier chapters showed that the streaming engine reads data in chunks. Here the question is what those chunks are re6 min readscan_parquet, filter, group_by, and agg. You should also know how to run a query with collect(engine="streaming") or sink_parquet, which earlier chapters covered. Streaming keeps memory low for operations that handle one c5 min readcollect(engine="streaming"). It covers one limit that streaming does not remove: the final result has to fit in memory unless you write it to disk.4 min readscan_parquet, filter, group_by, and agg. It also assumes you have run a query with collect(engine="streaming") or a sink. Here you will measure how much memory a query uses, find the step responsible when it uses too much, and app5 min readcollect(engine="streaming"), and write them out with sink_parquet. It also assumes you know the memory-heavy operations from earlier chapters (group_by, join, sort). The goal is to help you recognize when the streaming e6 min read