pandas.DatetimeIndex frequency is None and can’t be set
You have a couple options here: pd.infer_freq pd.tseries.frequencies.to_offset I suspect that errors down the road are caused by the missing freq. You are absolutely right. Here’s what I use often: def add_freq(idx, freq=None): “””Add a frequency attribute to idx, through inference or directly. Returns a copy. If `freq` is None, it is inferred. “”” idx … Read more