Hi, so I've got a dataframe in polars here one column is 'offRoad' being a bool. I want to keep only rows where offRoad is False and rows where offRoad is True but part of a group of offRoads of at least 4 consecutive Trues.
I really hope that makes sense. I'm quite new to Polars, but got a decent grip on python and could make this work by iterating through the rows. But I was hoping someone would have a suggestion on how I could do this in a more 'Polarsy' way using streams or whatnot.
Thanks in advance.