pandas.rolling_median

pandas.rolling_median(arg, window, min_periods=None, freq=None, center=False, time_rule=None, **kwargs)
O(N log(window)) implementation using skip list

Moving median

Parameters:

arg : Series, DataFrame

window : Number of observations used for calculating statistic

min_periods : int

Minimum number of observations in window required to have a value

freq : None or string alias / date offset object, default=None

Frequency to conform to before computing statistic time_rule is a legacy alias for freq

Returns:

y : type of input argument