Technical requirements
You can download the datasets and code in the GitHub repository.
- Data: https://github.com/PacktPublishing/Polars-Cookbook/tree/main/data
- Code: https://github.com/PacktPublishing/Polars-Cookbook/tree/main/Chapter12
It is assumed that you have installed the Polars library in your Python environment:
>>> pip install polars
It is also assumed that you have imported it into your code:
import polars as pl
Read the Pokemon dataset in a LazyFrame that will be used throughout this chapter:
lf = pl.scan_csv('../data/pokemon.csv')