>>> ser = pd.Series([1, 2, 3, 4, 5, 6], index=['a', 'b', 'c', 'd', 'e', 'f']) >>> ser.expanding(min_periods=4).quantile(.25) a NaN b NaN c NaN d 1.75 e 2.00 f 2.25 dtype: float64 ÚquantileÚ