pandas 0.8.0 documentation

pandas.stats.moments.rolling_count

pandas.stats.moments.rolling_count(arg, window, freq=None, time_rule=None)

Rolling count of number of non-NaN observations inside provided window.

Parameters :

arg : DataFrame or numpy ndarray-like

window : Number of observations used for calculating statistic

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

Frequency to conform to before computing statistic

Returns :

rolling_count : type of caller