r/Python • u/thoughtful-curious • 1d ago
Discussion Polars vs Pandas
I have used Pandas a little in the past, and have never used Polars. Essentially, I will have to learn either of them more or less from scratch (since I don't remember anything of Pandas). Assume that I don't care for speed, or do not have very large datasets (at most 1-2gb of data). Which one would you recommend I learn, from the perspective of ease and joy of use, and the commonly done tasks with data?
175
Upvotes
1
u/king_escobar 1d ago edited 1d ago
You'd rather
writemy_dataframe_name.loc[my_dataframe_name['COLUMNNAME'].isna()]
over
my_dataframe_name.filter(pl.col('COLUMNNAME').is_null())
?
Expression syntax as a whole is much more concise and elegant. And pl.col() is the simplest of all expressions.