Skip to content

Commit a7e14f8

Browse files
authored
Update tsfresh.feature_extraction.feature_calculators.skewness to make it consistent with the design principle of not ignoring nan (#1066)
Authored-by: 涛 <[email protected]>
1 parent af039f9 commit a7e14f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ Contributions
102102
- Will Koehrsen
103103
- Wojciech Indyk
104104
- yairst
105+
- yitao-yu

tsfresh/feature_extraction/feature_calculators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def skewness(x):
757757
"""
758758
if not isinstance(x, pd.Series):
759759
x = pd.Series(x)
760-
return pd.Series.skew(x)
760+
return pd.Series.skew(x, skipna=False)
761761

762762

763763
@set_property("fctype", "simple")

0 commit comments

Comments
 (0)