I have a dataframe that looks like below. I want to split this dataframe into two dataframe because these are different reports. I want split on 'break' index.
Fri Sat Sun Mon Tue
Metric Group Metric Type
Productive Time % Available 82.7% 88.9% 85.0% 82.8% 65.2%
Labor Move % Hours Lost 72.6% 70.9% 84.0% 49.0% 75.4%
Break % Failed Break 85.0% 50.5% 25.0% 72.9% 65.0%
Productive Time % Available 52.8% 90.9% 65.0% 56.9% 45.2%
Labor Move % Hours Lost 62.5% 80.9% 55.0% 65.9% 95.7%
Break % Failed Break 83.7% 85.9% 95.0% 71.9% 45.5%
The output should look something like.Is it possible to achieve this type of output.Any help is appreciated
df1 = Fri Sat Sun Mon Tue
Metric Group Metric Type
Productive Time % Available 82.7% 88.9% 85.0% 82.8% 65.2%
Labor Move % Hours Lost 72.6% 70.9% 84.0% 49.0% 75.4%
Break % Failed Break 85.0% 50.5% 25.0% 72.9% 65.0%
df2=
Productive Time % Available 52.8% 90.9% 65.0% 56.9% 45.2%
Labor Move % Hours Lost 62.5% 80.9% 55.0% 65.9% 95.7%
Break % Failed Break 83.7% 85.9% 95.0% 71.9% 45.5%