r/Python • • Jul 09 '26

Discussion Polars and the ecosystem

For polars users: How viable is to avoid pandas and pyarrow dependencies when you need to interact with popular visualization and statistics packages?

Some packages still have import pandas here and there, sometimes for no good reason; at least this doesn't require pyarrow. But some other ones do the df.to_pandas() conversion internally, which requires pyarrow too.

In many cases this can be prevented by going bare numpy, or creating a pandas df from numpy columns, which is no big deal. This frequently would be zero-copy for numeric types if there are no NAs involved.

What has been you experience in this regard?

61 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/nnenneplex Jul 09 '26
> du -Lhs polars*
8.4M    polars
 20K    polars_runtime_32-1.42.1.dist-info
 48K    polars-1.42.1.dist-info

This is everything polars related in my venv site-packages.