Skip to content

Commit

Permalink
Update tsfresh.feature_extraction.feature_calculators.skewness to mak…
Browse files Browse the repository at this point in the history
…e it consistent with the design principle of not ignoring nan (#1066)

Authored-by: 涛 <[email protected]>
  • Loading branch information
nils-braun authored Mar 11, 2024
1 parent af039f9 commit a7e14f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ Contributions
- Will Koehrsen
- Wojciech Indyk
- yairst
- yitao-yu
2 changes: 1 addition & 1 deletion tsfresh/feature_extraction/feature_calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def skewness(x):
"""
if not isinstance(x, pd.Series):
x = pd.Series(x)
return pd.Series.skew(x)
return pd.Series.skew(x, skipna=False)


@set_property("fctype", "simple")
Expand Down

0 comments on commit a7e14f8

Please sign in to comment.