From 3aac80c2c12ded12d0afc47fd46cb7f7f43517fc Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Fri, 17 Dec 2021 11:18:00 -0800 Subject: [PATCH] BUG #454 initial period fix --- README.md | 2 +- pandas_ta/overlap/jma.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c948fcb..7a98ed5 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ $ pip install pandas_ta Latest Version -------------- -Best choice! Version: *0.3.40b* +Best choice! Version: *0.3.41b* * Includes all fixes and updates between **pypi** and what is covered in this README. ```sh $ pip install -U git+https://github.com/twopirllc/pandas-ta diff --git a/pandas_ta/overlap/jma.py b/pandas_ta/overlap/jma.py index 680e1fa..ebd851b 100644 --- a/pandas_ta/overlap/jma.py +++ b/pandas_ta/overlap/jma.py @@ -95,8 +95,8 @@ def jma(close, length=None, phase=None, offset=None, **kwargs): jma[i] = jma[i-1] + det1 # Remove initial lookback data and convert to pandas frame - jma[0:_length - 1] = npNaN jma = Series(jma, index=close.index) + jma.iloc[0:_length - 1] = npNaN # Offset if offset != 0: diff --git a/setup.py b/setup.py index e4c9197..0789f02 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( "pandas_ta.volatility", "pandas_ta.volume" ], - version=".".join(("0", "3", "40b")), + version=".".join(("0", "3", "41b")), description=long_description, long_description=long_description, author="Kevin Johnson",