Skip to content

Deprecation Warning from pandas in your library (ta): use of positional indexing in Series #357

Description

@selimozbas

Hi ,

Thank you for your work on the ta library. it's a great tool for technical analysis in Python.

I wanted to inform you about a FutureWarning from pandas that appears when using your library:

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

It seems that somewhere in the library, there is a line similar to:

series[0] = value

This works now but will behave differently in future versions of pandas. To avoid issues and suppress the warning, this should be updated to:

series.iloc[0] = value

I just wanted to report this to help future-proof the library and ensure compatibility with upcoming versions of pandas.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions