mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-17 20:04:19 +01:00
[fix] Address pandas future warning about sorting in pd.DataFrame.concat
This commit is contained in:
@@ -267,7 +267,7 @@ class TiingoClient(RestClient):
|
||||
df = pd.DataFrame(response.json())
|
||||
df.index = df['date']
|
||||
df.rename(index=str, columns={metric_name: stock}, inplace=True)
|
||||
prices = pd.concat([prices, df[stock]], axis=1)
|
||||
prices = pd.concat([prices, df[stock]], axis=1, sort=True)
|
||||
prices.index = pd.to_datetime(prices.index)
|
||||
return prices
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user