Categories
pandas python

How to merge rows with same index on a single data frame?

I have a dataframe that looks like this:

A          B           C
1 1234 Win
1 2345 Win
2 1987 Loss
3 3456 Win
3 4567 Win

And I want this to become:

A          B           C
1 1234,2345 Win
2 1987 Loss
3 3456,4567 Win

Note: C values always have the same value for the same index.

Anyone can help? Thanks!