-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
API DesignDuplicate ReportDuplicate issue or pull requestDuplicate issue or pull requestNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Description
It appears that Series.quantile()
interpolates between the two bracketing values, whereas expanding/rolling_quantile()
don't.
In [496]: x = Series([0,1])
In [497]: x.quantile(0.3)
Out[497]: 0.29999999999999999
In [498]: expanding_quantile(x, 0.3)
Out[498]:
0 0
1 0
dtype: float64
In [499]: rolling_quantile(x, 2, 0.3, min_periods=1)
Out[499]:
0 0
1 0
dtype: float64
Metadata
Metadata
Assignees
Labels
API DesignDuplicate ReportDuplicate issue or pull requestDuplicate issue or pull requestNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations