We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s = pd.Series( range(10), index = pd.PeriodIndex(start = '2013-10-1', end = '2013-10-10', freq = 'D')) pd.rolling_median(s,5, min_periods = 1) 2013-10-01 0.0 2013-10-02 0.5 2013-10-03 1.0 2013-10-04 1.5 2013-10-05 2.0 2013-10-06 3.0 2013-10-07 4.0 2013-10-08 5.0 2013-10-09 6.0 2013-10-10 7.0 Freq: D, dtype: float64
When center is specified we get Nans in the last window//2 positions
s = pd.Series( range(10), index = pd.PeriodIndex(start = '2013-10-1', end = '2013-10-10', freq = 'D')) pd.rolling_median(s,5, min_periods = 1, center = True) 2013-10-01 1.0 2013-10-02 1.5 2013-10-03 2.0 2013-10-04 3.0 2013-10-05 4.0 2013-10-06 5.0 2013-10-07 6.0 2013-10-08 7.0 2013-10-09 NaN 2013-10-10 NaN Freq: D, dtype: float64
I was expecting the last two values to be 7.5 and 8.
I got the same results, nans at the end with rolling_mean as well
This is with pandas 12.0 and windows 64.
The text was updated successfully, but these errors were encountered:
found issue #3136 .Closing
Sorry, something went wrong.
No branches or pull requests
When center is specified we get Nans in the last window//2 positions
I was expecting the last two values to be 7.5 and 8.
I got the same results, nans at the end with rolling_mean as well
This is with pandas 12.0 and windows 64.
The text was updated successfully, but these errors were encountered: