I am not familar with pandas, now. I have a csv file, which has the format and some other columns, simplified here:
USER; so; ROLE
hugo; a; role_x
hugo; a; role_y
hugo; b; role_x
hugo; b; role_y
otto; role_x
and I need the output in this form, where the role category should be listed only once:
USER; ROLES
hugo; role_x, role_y
otto; role_x
I do this with iteration and dictionary. Is this easier by pandas?
With the referenced solution I get something like:
USER; ROLES
hugo; role_x, role_y, role_x, role_y
otto; role_x
But the result should show the same role only once.