Hey guys i'm trying to split a dataframe into several subsets by comparing it to a list.
combined = []
for i in df['reg_sch_cur'].unique():
combined.append(i)
#creates a list with column 44 uniques
#split df
for i in combined:
df= df[df['reg_sch_cur'] == i]
This, unfortunately, only saves me the last iteration. I would like to store in cash every dataframe splitted (44) so i'm assuming that on df = df[df['reg_sch_cur'] == i] i have to add something do save the df with their multiple names