Julian

Results 58 comments of Julian

@orlp honestly, I have no good idea atm. Need to think about that. I am still wondering how the window gets "centered" for **discrete** data - `age=30, length=4`: is the...

thanks @orlp I actually think `closed='both'` is a good choice. With `center` I expect by default a "perfect" centering. Example: int `age=30` - `length=4` & `length=5` -> [28, 29, 30,...

@stinodego thanks for your feedback! regarding 2): imo this doesn't hurt readability that much. I feel this goes more in line with polars idea of make everything very explicit and...

> Series might look better horizontal, what do you think? Here are a few options: > > ``` > ╭──────┬───────┬──────┬───────────┬───────╮ > ╭─────────────┬─────╯ 0 │ 1 │ 2 │ 3 │...

nice!! But one thing I would definetely change is returning `-1` when the pattern is not found. Returning those sentinal values is very dangenous because it hides errors (if you...

hi @ek-ex cannot reproduce this with your example 🤔 ```python pl.read_csv("cum_sum.csv").with_columns( cum_sum=pl.col("volume").cum_sum(), cum_sum_over=pl.col("volume").cum_sum().over("date"), ).filter( (pl.col("cum_sum") != pl.col("Manually computed cum_sum")) | (pl.col("cum_sum_over") != pl.col("Manually computed cum_sum")) ) # zero rows df:...

thanks a lot for your feedback and your ideas! @cmdlineluser: nice solution and very similar to the numpy/pandas way. What I don't like about it is this strange False/None initialization...

just throwing in some performance comparisons ## polars: when/then/otherwise chain VS when/then/otherwise nested ```python %%timeit df_pl.with_column( when(col("r") < 0.5).then(0) .when(col("r") < 0.75).then(col("r") * 2) .when(col("r") < 0.9).then(col("r") * 3) .when(col("r")...