I have a dataframe of two columns "ExplB" and "remP". Values in remP can be only 0 or 1. I'm trying to split the dataframe in multiple dataframes after the value 1 is met in column remP. How can I do this operation in Python?
How can I solve this? enter image description here
data = {'ExplB':[0,0,0,0.2,0.2,0.15,0,0,0,0,0,0,0,0,0],'remP':[0,0,0,1,0,0,0,0,1,0,0,0,1,0,0]}
df = pd.DataFrame(data, columns = ['ExplB', 'remP'])