You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E AttributeError: 'Index' object has no attribute 'tz_localize'
Reason:
During the concatenation of a proper price table with empty dividend and split tables, the price table's index has changed from pandas.DatetimeIndex to pandas.Index because the empty tables had this index type.
Proposed solution:
Modify parse_actions (in utils.py) to initialise the dividend and split tables with : dividends = _pd.DataFrame(columns=["Dividends"], index=_pd.DatetimeIndex([])) splits = _pd.DataFrame(columns=["Stock Splits"], index=_pd.DatetimeIndex([]))