mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 20:24:19 +01:00
Update comment regarding timezone inclusion for csv requests.
This commit is contained in:
@@ -201,7 +201,7 @@ class TiingoClient(RestClient):
|
|||||||
prices.index = pd.to_datetime(prices.index)
|
prices.index = pd.to_datetime(prices.index)
|
||||||
|
|
||||||
# Localize to UTC to ensure equivalence between data returned in json format and
|
# Localize to UTC to ensure equivalence between data returned in json format and
|
||||||
# csv format. Data requested in csv format does not include a timezone.
|
# csv format. Tiingo daily data requested in csv format does not include a timezone.
|
||||||
if prices.index.tz is None:
|
if prices.index.tz is None:
|
||||||
prices.index = prices.index.tz_localize('UTC')
|
prices.index = prices.index.tz_localize('UTC')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user