mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 04:14:20 +01:00
[fix] Address pandas future warning about sorting in pd.DataFrame.concat
This commit is contained in:
@@ -4,7 +4,7 @@ History
|
|||||||
|
|
||||||
0.13.0 (2019-11-XX - Unreleased)
|
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)
|
0.12.0 (2019-10-20)
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
__version__ = '0.12.0'
|
__version__ = '0.13.0'
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ class TiingoClient(RestClient):
|
|||||||
df = pd.DataFrame(response.json())
|
df = pd.DataFrame(response.json())
|
||||||
df.index = df['date']
|
df.index = df['date']
|
||||||
df.rename(index=str, columns={metric_name: stock}, inplace=True)
|
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)
|
prices.index = pd.to_datetime(prices.index)
|
||||||
return prices
|
return prices
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user