mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-08-17 11:23:27 +08:00
BUG #454 initial period fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user