I have a dataframe that has multiple entries for users. These users can also be assigned to multiple ID's.
I would like to group by the users and then store a list of these ID's in another column as shown below:
I'd like to go from this:
df1 = pd.DataFrame({'USER': ['BOB','STEVE','PAUL','KEITH','STEVE','STEVE','BOB'],'ID':[1,2,3,4,5,6,7]})
To this. Only showing values if that user is attached to multiple ID's