[fix] Address pandas future warning about sorting in pd.DataFrame.concat

This commit is contained in:
Cameron Yick
2020-01-12 11:19:20 -05:00
parent a7c1a48ca2
commit 9a666e0156
3 changed files with 3 additions and 3 deletions

View File

@@ -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: