API: DatetimeIndex.set_freq
leftover from https://github.com/pandas-dev/pandas/pull/20772

IIUC, the proposal is for `datetime_index.set_freq(new_freq)` to be an alternative to `datetimeindex.freq = new_freq` (please correct me if I'm wrong).

This would also apply to TimedeltaIndex.