[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

@@ -4,7 +4,7 @@ History
0.13.0 (2019-11-XX - Unreleased)
--------------------------------
* Update me with new features!
* Minor: Address Pandas Future Warning for sorting in pd.concat (#392)
0.12.0 (2019-10-20)
--------------------

View File

@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '0.12.0'
__version__ = '0.13.0'

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: