You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Bug in quantile() and median() returned wrong result for non monotonic window borders (pandas-dev#37166)
* BUG: Bug in quantile() and median() returned wrong result for non monotonic window borders
* Adjust whatsnew
* Use is monotonic instead
* Remove unncecessary code
* Remove unncecessary code
* Rename function after related pr was merged
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v1.2.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -506,6 +506,7 @@ Groupby/resample/rolling
506
506
- Bug in :meth:`DataFrameGroupBy.rolling` returned wrong values with timeaware window containing ``NaN``. Raises ``ValueError`` because windows are not monotonic now (:issue:`34617`)
507
507
- Bug in :meth:`Rolling.__iter__` where a ``ValueError`` was not raised when ``min_periods`` was larger than ``window`` (:issue:`37156`)
508
508
- Using :meth:`Rolling.var()` instead of :meth:`Rolling.std()` avoids numerical issues for :meth:`Rolling.corr()` when :meth:`Rolling.var()` is still within floating point precision while :meth:`Rolling.std()` is not (:issue:`31286`)
509
+
- Bug in :meth:`Rolling.median` and :meth:`Rolling.quantile` returned wrong values for :class:`BaseIndexer` subclasses with non-monotonic starting or ending points for windows (:issue:`37153`)
0 commit comments