Spent too long on resampling problem. The edge case was the roll boundary. Here's Polars solution

Posted by CriticalCup6207@reddit | Python | View on Reddit | 1 comments

[removed]