How to resample a df with datetime index to exactly n equally sized periods?,"df.resample('2D', how='sum')"