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?

63 Upvotes

33 comments sorted by

View all comments

Show parent comment

4

u/baked_doge Jul 09 '26

And I know seaborn is probably the most exhaustive ploting library but I found Altair worked well for most plotting, and plotly and bokeh for interactive scenarios of course have their space.

4

u/nnenneplex Jul 09 '26

Altair supports interaction as well.

4

u/baked_doge Jul 09 '26

Good to know, I forget what limitation I had run into. Maybe 3rd or map related applications, idk

But I love the Altair syntax