News for hackers. Stuff that matters.
Re:Polars by nerdponx on Monday January 08, 2024 @11:33PM (#38922350)
I got annoyed at the verbosity as well. Pandas is fairly verbose compared to eg data.table, but Polars really feels more like using "an API" than "a data manipulation tool".

I probably wouldn't use it for EDA or research, but I have started to use it in certain production scripts for the better performance.

R dplyr + data.table is still my favorite data manipulation experience. I just wish we had something like Matplotlib in R: ggplot is too high level, base graphics are too low level. Also Scikit-Learn is much more modular than Caret, which I don't really miss using.

Re:Polars by billyzs on Tuesday January 09, 2024 @02:19AM (#38923346)
> I just wish we had something like Matplotlib in R

plotly could be worth a try, i use its python bindings and much prefer it to matplotlib, but i don't know much about the quality of it's R API

Re:Polars by blt on Tuesday January 09, 2024 @02:32AM (#38923412)
yeah, I haven't used Polars but from skimming the docs it looks kind of enterprisey. I don't want to type `df.select(pl.col("a"))` instead of `df["a"]`.
Re:Polars by theLiminator on Tuesday January 09, 2024 @04:18AM (#38923968)
Latter also works.
Re:Polars by dash2 on Tuesday January 09, 2024 @05:14AM (#38924361)
Have you tried the "grid" graphics package in R? It's the basis for ggplot. It's a bit of an unsung hero, the documentation is not great, but I think it is a very solid library.
Re:Polars by nerdponx on Tuesday January 09, 2024 @09:02AM (#38926259)
Is it usable on its own? I only ever interacted with it in trying to hack around something I didn't like in ggplot, and it didn't seem like something I could use "by hand". In hindsight it does sound a lot like what MPL does. I can take a look!