| ▲ | duskdozer an hour ago | |
I guess I am a casual pandas user only. Reading a guide on migrating/differences, it's hard to see why polars would be obviously better. | ||
| ▲ | bobson_dugnutt5 an hour ago | parent [-] | |
Here are a couple reasons: - much faster, multithreaded by default. Read in a big csv with it and see how it feels. - no index/MultiIndex. Pandas special treatment of index always felt like more trouble than it was worth, so no need to reset_index() everywhere. - expressions are very portable. At first using pl.col everywhere feels like a bit much, but you can define them anywhere and then apply them to a dataframe whenever you want. - once internalized, the syntax makes much more sense and is far more consistent compared to pandas. Of course all depends on what your use cases are. If performance is important then I'd strongly recommend trying it out. If you just use it to have a look at the odd dataframe, maybe not worth your time as much | ||