I have one pandas dataframe that I need to split into multiple dataframes. The number of dataframes I need to split depends on how many months of data I have i.e I need to create a new dataframe for every month. So df:
MONTH NAME INCOME
201801 A 100$
201801 B 20$
201802 A 30$
So I need to create 2 dataframes . Problem is i dont know how many months of data I will have in advance. How do i do that