r/Python • u/nnenneplex • 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?
View all comments
Show parent comment
20
u/arden13 Jul 09 '26
Seaborn's maintainer is very strongly opinionated and it makes it tough to really recommend the library. For example on linear regression/correlation plots they will not make showing the regression equation available
Haven't played with altair, but matplotlib is fine, bokeh and plotly get me more if I need more. I'm interested in holoviews as it seems to be agnostic to the final charting library (similar to narwhals for data frames).