From fd314687aef55d4884ac82656b3f58ad153c7eca Mon Sep 17 00:00:00 2001 From: Reza Allahyarzadeh Date: Sun, 3 May 2020 18:32:33 +0300 Subject: [PATCH] update skew adding handle fills --- pandas_ta/statistics/skew.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandas_ta/statistics/skew.py b/pandas_ta/statistics/skew.py index bb8f201..8705589 100644 --- a/pandas_ta/statistics/skew.py +++ b/pandas_ta/statistics/skew.py @@ -15,7 +15,13 @@ def skew(close, length=None, offset=None, **kwargs): # Offset if offset != 0: skew = skew.shift(offset) - + + # Handle fills + if 'fillna' in kwargs: + skew.fillna(kwargs['fillna'], inplace=True) + if 'fill_method' in kwargs: + skew.fillna(method=kwargs['fill_method'], inplace=True) + # Name & Category skew.name = f"SKEW_{length}" skew.category = 'statistics' @@ -45,4 +51,4 @@ Kwargs: Returns: pd.Series: New feature generated. -""" \ No newline at end of file +"""