My df is datestamp index. I need to split it in two different df with fixed window (for exemple 2 day) in alternation like this:
df1 = yellow ans df2 the white
Thank so much for your help
My df is datestamp index. I need to split it in two different df with fixed window (for exemple 2 day) in alternation like this:
df1 = yellow ans df2 the white
Thank so much for your help
Copyright © 2021 Jogjafile Inc.

Assuming the following example input:
If you have a range index, you could use it to compute a group and split:
output: