I have a Pandas dataframe with dates column as datetime objects, not strings.
Datetime col1 col2
1 2021-05-19 05:05:00 3 7
2 ...
I would like to split it to multiple dataframes by days.
For example currently i split it by rows with a simple num var :
split = range(0,len(data.index),num)
results = []
for c in split:
results.append(data.iloc[c:(c+num)])
return results
How would I split it by days ? for example if num = 10 create dataframes of 10 days each, so first will have all rows with days 1-10, the second will have 10-20, etc. (not day of the month, but absolute groups of 10 days)
