Skip to content

Pandas future warning around sorting #392

@ymyke

Description

@ymyke
  • Tiingo Python version: 0.12.0
  • Python version: 3.7.5
  • Operating System: Windows 10

Description

Used get_dataframe() to retrieve a tickers historical price data.

What I Did

The function works and produces the expected results, but it also produces a warning:

C:\Users\[...]\lib\site-packages\tiingo\api.py:270: FutureWarning: Sorting because non-concatenation axis is not aligned. A future version
of pandas will change to not sort by default.

To accept the future behavior, pass 'sort=False'.

To retain the current behavior and silence the warning, pass 'sort=True'.

prices = pd.concat([prices, df[stock]], axis=1)

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