df = pd.DataFrame(index = pd.date_range('2019-04-01 00:30', '2019-10-01', freq='30min').values, columns=['demand']) df.index.name = 'timestamp'