Loading tutorials
read_csv, to_csv, head, info and describe, and that you have installed Polars with pip install polars. Parquet support is built in. Converting to pandas needs pyarrow.3 min readint64, float64, object, category, datetime64) and can run short Polars snippets. It covers what each pandas dtype becomes in Polars, how to read and enforce a schema, and where casting behaves differently. Missing values are covered in4 min readpip install polars). It builds on the mental model of no index and immutable frames. Here you learn the two ideas that replace most pandas indexing code: expressions an3 min readloc and iloc, and sort_values. It also assumes you have read the earlier chapters on expressions and contexts. Every example uses thi3 min readnp.where, and apply. It also assumes you have read the earlier chapters on expressions and on selecting and filtering. Here you will translate the most common pandas column operations into Polars with_columns, and learn the errors that ap4 min readisna, fillna, dropna) and the basics of Polars expressions from earlier chapters. By the end you will know how Polars represents missing values, how its behavior differs from pandas, and how to port common cleaning code correctly.4 min readgroupby code from pandas into Polars group_by. It assumes you can write pandas groupby().agg() with named aggregation, and that you have read the earlier chapters on expressions and on creating columns. The examples use Polars 1.x. Older releases spell `grou4 min readgroupby().transform(), can write basic Polars expressions (pl.col, with_columns, group_by().agg()), and understand that Polars frames are immutable. It covers how to compute a per-group value and attach it to every row, which is what transform does in p4 min readpd.merge, DataFrame.join and pd.concat, and that you have read the earlier chapters on expressions and the no-index model. It maps each operation to its Polars equivalent and covers the places where results differ.4 min read.str and .dt accessors to their Polars equivalents. It assumes you know the Polars expression model from earlier chapters (pl.col, with_columns, select) and can read pandas string and datetime code.3 min readpivot_table, melt, and stack/unstack. It also assumes you have read the earlier chapters on expressions and group by. Here you will translate those reshaping calls to Polars pivot and unpivot. You will also learn where the two libraries differ in defa4 min readselect, with_columns, filter, group_by().agg()), and have Polars installed (pip install polars). It covers how a LazyFrame differs from a DataFrame, what the optimizer does to your query, and which mistakes cause surp5 min readapply(axis=1) and iterrows loops. It also assumes you know pl.col, with_columns and filter from the earlier chapters. Polars 1.0 or later is assumed, because replace_strict was added in that line.3 min readpip. You should also have read the earlier chapters on the Polars mental model (no index, immutable frames, expressions). Here you will learn how to move data between the two libraries, wh4 min readselect, with_columns, filter, group_by), and have seen from_pandas, to_pandas and scan_csv. It covers how to move a real codebase from pandas to Polars in stages, without a rewrite that freezes feature work.5 min read