Polars 2 · Lazy queries and files

Convert to and from pandas

Convert for libraries that expect pandas. This needs pyarrow installed.

pandas_df = df.to_pandas()
df = pl.from_pandas(pandas_df)

Official Polars 2 documentation

More lazy queries and files commands

All lazy queries and files commands · Polars 2 cheatsheet

Was this page helpful?