Polars: Fill missing months per group
Polars: Fill missing months per group Question: I want to fill in missing months in a data frame per group based on the minimum and maximum date in each group. This approach works but uses polars.apply. import polars as pl import numpy as np from datetime import date DATA_SIZE = 10000000 raw_df = pl.DataFrame({ "id": …