I have some timeseries data in the form of a pl.DataFrame
object with a datetime col and a data col. I would like to correct an error in the data that occurs during a distinct time range by overwriting it with a value.
Now in pandas
, one would use the datetimes as index and slice that timerange and assign to it, like so
df.loc[start_dt_string:end_dt_string, column_name] = some_val
Being completely new to polars
I have a hard time figuring out how to express this. I tried selecting rows with .filter
and .is_between
but of course this doesn't support assignment. How would one go about doing this with polars
?