How to split a dataframe based on the index : 
I would like to split the below DF_input based on the index. That's from the below DF, How to obtain:  

           measurement      value
    0              0        13
    1              1         3
    2              2         4
    0              0         8
    1              1        12
    2              2        34 
    3              5        54 



DF_output1

           measurement      value
    0              0        13
    1              1         3
    2              2         4



DF_output2

           measurement      value
    0              0         8
    1              1        12
    2              2        34 
    3              5        54 


What I did is the following:` 

                df_input.reset_index(inplace=True)         
                shifted = df_dataset['index'].shift()
                m = shifted.diff(-1).ne(0.000000)             
                a = m.cumsum()
                aa = df_dataset.groupby([df_dataset.uuid,a])                

                for k, gp in aa:
					print(gp)

What Am I doing wrong? Any help please would be very appreciated.
Best Regards, Carlo