Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

IndexError: list index out of range #103

Open
bshuler opened this issue Nov 23, 2020 · 2 comments
Open

IndexError: list index out of range #103

bshuler opened this issue Nov 23, 2020 · 2 comments

Comments

@bshuler
Copy link

bshuler commented Nov 23, 2020

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
Copy link
Author

bshuler commented Nov 23, 2020

1.0 does not have this bug, reverting to 1.0

@karthikdhanusu
Copy link

1.0 does not have this bug, reverting to 1.0

Perfect it worked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants