bukosabino / ta

Technical Analysis Library using Pandas and Numpy
https://technical-analysis-library-in-python.readthedocs.io/en/latest/
MIT License
4.33k stars 915 forks source link

FutureWarning (with pandas 1.5.1) #308

Closed i-gutierrez closed 1 year ago

i-gutierrez commented 1 year ago

trend.py:730: FutureWarning: The behavior of series[i:j] with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. series[i] lookups. To retain the old behavior, use series.iloc[i:j]. (...)

Same thing on line 748 and 760. It's not really important at the moment but it's a quick fix (just add iloc after dropna), and because I don't like ignoring warnings I already have the pull request ready :)

lanigo-coder commented 1 year ago

Same issue in volatility.py:50