Generate a #Python #Pandas DatetimeIndex of datetime values, specifying the frequency, by passing freq and a code:

pd.date_range(start='2026-03-01', end='2026-05-01', freq='8h')

This returns a 184-element DatetimeIndex with evenly-spaced datetime values in that period.