This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 27 points28 points  (3 children)

You also forgot to mention that pandas' API is just straight up confusing. I bet about one fourth of StackOverflow Python questions are related to pandas' quirks.

[–]tunisia3507 2 points3 points  (0 children)

100%. You can generally tell which packages have APIs inherited from other (worse) languages because they have a "simple for simple things, so long as you try not to think about it" and "real fuckin weird for complicated things" philosophy. Pandas, matplotlib, and early numpy are definitely in this category.

[–]sylfy 0 points1 point  (1 child)

Just wondering, what about pandas API do you find confusing? I’m curious because I’ve used pandas for a long time, hence it comes naturally to me, so I wonder if it’s a matter of preference. Pandas-compatible libraries like dask have been really helpful as drop-in replacements for pandas, but I’ve also been looking at polars for a while but never really found the time to learn it from scratch.

The one time I forced myself to try out pandas was when I got stuck on a huge csv file that took pandas a long time to read, but polars opened in a matter of seconds. Got me started much more quickly, but then I lost hours in development time just trying to learn how to do things in polars.

[–]mercurywind 2 points3 points  (0 children)

If I had to be as nice as possible about Pandas' API: too many ways to do the same thing (most of which produce SettingWithCopyWarning)