Loading tutorials
pip install polars). Three ideas explain most of the differences you will meet when porting code.2 min readread_csv, to_parquet, head, info) and have installed Polars with pip install polars. You will map each of those calls to its Polars equivalent.1 min readint64, object and category. It also assumes you can read a Polars select or with_columns call from the earlier chapters.2 min readpip install polars.2 min readloc, boolean masks and sort_values, and that you have read the earlier chapters on expressions and contexts. Here you will translate the three most common row and column operations.2 min readpl.col("x") builds an expression and that a frame is never changed in place.2 min readisna, fillna and dropna, and that you have read the earlier chapters on expressions and creating columns.2 min readgroupby, including named aggregation, and that you have read the earlier chapters on expressions and with_columns.2 min readgroupby().transform() and have read the earlier chapters on expressions and group by. Here you will learn how Polars over computes a per-group value for every row without collapsing the frame.2 min readpd.merge and pd.concat, and that you have read the earlier chapters on expressions and the no-index model. The examples use a recent Polars 1.x release.2 min read.str and .dt code and that you know Polars expressions from the earlier chapters. It covers the Polars equivalents and the places where behavior differs.2 min readpivot_table and melt, and that you have read the earlier chapters on expressions and group by. It covers the Polars equivalents and the differences that cause errors when you port code.2 min readfilter, group_by and agg, and have read CSV files with pandas. It covers how a lazy query differs from the eager code you have written so far.2 min readpl.col, with_columns, and when/then/otherwise.1 min readfrom_pandas and to_pandas, and have a pandas pipeline that you are porting. Validation means proving that the Polars version produces the same data as the pandas version before you remove the old code.2 min read