I have a dataframe like this:
Maximum Demand (KVA) Consumption (KVAh) Power Factor
Timestamp
2017-04-01 01:00:00 127.0 261.0 0.81
2017-04-01 02:00:00 133.0 268.0 0.79
2017-04-01 03:00:00 119.0 273.0 0.92
2017-04-01 04:00:00 118.0 263.0 0.78
2017-04-01 05:00:00 135.0 271.0 0.86
2017-04-01 06:00:00 130.0 257.0 0.82
2017-04-01 23:00:00 120.0 261.0 0.78
2017-04-02 00:00:00 121.0 272.0 0.83
2017-04-02 01:00:00 126.0 263.0 0.90
2017-04-02 02:00:00 132.0 266.0 0.83
2017-04-02 03:00:00 132.0 275.0 0.90
2017-04-02 04:00:00 122.0 259.0 0.77
2017-04-02 05:00:00 119.0 271.0 0.78
2017-04-02 06:00:00 122.0 259.0 0.81
2017-04-02 23:00:00 115.0 264.0 0.87
2017-04-03 00:00:00 129.0 273.0 0.86
I want to resample data by the time of 01:00 - 0:00 of another date:
I tried this:
off_sum = offpeak_hist.resample('h', base=8).sum().dropna()
But the desired output is not achieved. Please help me on this.