I have the following dataframe:
Group SubGroup
0 GroupA A1
1 GroupA A2
2 GroupA A3
3 GroupB B1
4 GroupB B2
5 GroupC C1
How do I transform this Dataframe in a dictionary? My expected output is as follows:
{'GroupA': ['A1', 'A2', 'A3'], 'GroupB': ['B1', 'B2'], 'GroupC': ['C1']}