peerchemist / finta

Common financial technical indicators implemented in Pandas.
GNU Lesser General Public License v3.0
2.13k stars 688 forks source link

IndexError: list index out of range #103

Open bshuler opened 3 years ago

bshuler commented 3 years ago

Simple example code does not function.

I expected there to be no error.

There is an error.

100%

finta~=1.2 pandas~=1.1.4 python 3.8

import pandas as pd from finta import TA

candle_file = "bittrex_btc-usdt.csv"

candles = pd.read_csv(candle_file)

wto = TA.WTO(ohlc=candles, channel_lenght=11, average_lenght=15)

Error:

Traceback (most recent call last): File "C:/Users/me/PycharmProjects/project/build_indicators.py", line 8, in wto = TA.WTO(ohlc=candles, channel_lenght=11, average_lenght=15) File "C:\Users\me\PycharmProjects\project\venv\lib\site-packages\finta\finta.py", line 13, in wrap i = 0 if isinstance(args[0], pd.DataFrame) else 1 IndexError: list index out of range

bshuler commented 3 years ago

1.0 does not have this bug, reverting to 1.0

karthikdhanusu commented 3 years ago

1.0 does not have this bug, reverting to 1.0

Perfect it worked