DataFrames and expressions
Create Polars Series and DataFrames in Python, inspect schemas, and understand expressions and LazyFrames before transforming a dataset.
DataFrames, expressions, joins, file formats, and reporting with Polars. Includes lazy queries, streaming, and data quality checks.
7 chapters · 50 topics
Create Polars Series and DataFrames in Python, inspect schemas, and understand expressions and LazyFrames before transforming a dataset.
Use Polars select, with_columns, and filter to transform data. Python examples cover nulls, duplicates, strings, dates, and time zones.
Join and aggregate Polars DataFrames with group_by, windows, and as-of joins. Reshape tables and work with lists, structs, and nested JSON.
Read and write CSV, Parquet, JSON, and Excel with Polars. Exchange Arrow and pandas data, combine files, and scan partitioned cloud datasets.
Optimize Polars lazy queries with explain, streaming, and native expressions. Understand memory use and when Python UDFs add overhead.
Follow complete Polars pipelines for messy sales exports, schema drift, ledger reconciliation, and files larger than memory.
Query databases with Polars and SQLAlchemy, use SQLContext, and test data quality. Includes ConnectorX, ADBC, and Altair examples.
Allow Google Analytics to measure page visits and use of the guides? It uses cookies after you accept. Your choice won’t affect access to the site. Privacy notice