Applying custom aggregation on rolling

Is it possible to do custom aggregation on rolling function? I’m trying to obtain median of previous 30 values of a column.

Isn’t dask.dataframe.rolling.Rolling.apply — Dask documentation what you are looking for?