Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FutureWarning at 1030 (Python3.12) #348

Open
AndriiPetrosiuk opened this issue Nov 7, 2024 · 0 comments
Open

FutureWarning at 1030 (Python3.12) #348

AndriiPetrosiuk opened this issue Nov 7, 2024 · 0 comments

Comments

@AndriiPetrosiuk
Copy link

ta/ta/trend.py

Line 1030 in 5654782

self._psar[i] = high2

/usr/local/lib/python3.12/dist-packages/ta/trend.py:1030: FutureWarning: Series.setitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To set a value by position, use ser.iloc[pos] = value

Change to self._psar.iloc[i] = high2

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

No branches or pull requests

1 participant