option expiries garbled

Bug #1566578 reported by Marshall Farrier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dateutil
New
Undecided
Unassigned

Bug Description

This issue travels down a dependency chain through `pandas` and `pandas-datareader`, where I've filed the same issue:

- https://github.com/pydata/pandas/issues/12808
- https://github.com/pydata/pandas-datareader/issues/193

Using `python-dateutil 2.4.2`, the dates parse correctly, but when I "upgrade" to 2.5.2, I get garbled expiries, where year and day of month are being confused:

>>> from pandas_datareader.data import Options
>>> tsla = Options('tsla', 'yahoo')
>>> data = tsla.get_all_data()
>>> data.shape
(1064, 13)
>>> data.index.levels[1]
DatetimeIndex(['2008-04-16', '2015-04-16', '2016-09-16', '2017-06-16',
           '2019-01-18', '2020-01-17', '2020-05-16', '2022-04-16',
           '2029-04-16'],
          dtype='datetime64[ns]', name='Expiry', freq=None)
>>> data.index.levels[1].shape
(9,)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.