pandas 0.7.3 documentation

pandas.stats.moments.rolling_median

pandas.stats.moments.rolling_median(arg, window, min_periods=None, time_rule=None)

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

time_rule : {None, ‘WEEKDAY’, ‘EOM’, 'W@MON‘, ...}, default=None

Name of time rule to conform to before computing statistic

Returns :

y : type of input argument