Skip to content

BUG: expanding/rolling_quantile() inconsistent with Series.quantile() #8084

@seth-p

Description

@seth-p

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions