|
|
|
|
|
by FridgeSeal
1261 days ago
|
|
> Does anyone else find the Polars syntax kind of clunky and ambiguous? I’ve used pandas a lot, but I’ve come to the opposite conclusion. In my experience, these pandas expressions end up being bracket soup, and become increasingly fragile to hold in your head while you try and figure out just which n rows and columns you’re looking at. Couple that with pandas opaqueness around copy-vs-view and the blurring of lines between API’s for selection, vs API’s for mutation and you get an unpleasant experience. This particular pandas example is simpler, but it doesn’t take much IME for pandas df’s to end up far more unreadable. I’ll gladly take polars saner API if it means I don’t have to play “data frame lisp bracket-matching” games ever again. |
|