News for hackers. Stuff that matters.
Re:Polars by petre on Tuesday January 09, 2024 @07:22AM (#38925300)
The docs are okay, but the feature set is lacking compared to pandas, which is understandable since this is at version 0.2. I was exploring if it's possible to use this, but we need diff aggregation which it doesn't have, so it's a no go right now.
Re:Polars by cmdlineluser on Tuesday January 09, 2024 @07:48AM (#38925544)
Do you mean something like `.agg(pl.col("foo").diff())`?

Or is diff aggregation its own thing? (I tried searching for the term, but didn't find much.)

Re:Polars by petre on Tuesday January 09, 2024 @08:12AM (#38925761)
Nevermind, it has it but it's under Computation in polars.Series.diff and I was looking under Aggregation. This is great.

For instance you've got a time series with an odometer value and you want the a delta from the previous sample to compute the every trip.