ewm_mean default value does not match docstring and pandas API #13017
Labels
accepted
Ready for implementation
bug
Something isn't working
deprecation
Add a deprecation warning to outdated functionality
P-low
Priority: low
python
Related to Python Polars
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
No response
Issue description
The default value of
ignore_nulls
does not match docstring: "When ignore_nulls=False (default), weights are based on absolute positions.
" . But it actually defaults to True. Also this is inconsistent with pandas API.Two solutions I came up with:
False
as in fix(python): change ignore_nulls default to False #13004I prefer the second one to keep the same interface as in pandas, which could make code migration from pandas to polars easier.
Expected behavior
ignore_nulls
should default to False, or at least be consistent with doc stringInstalled versions
The text was updated successfully, but these errors were encountered: