Name | Age | Gender | Occupation |
---|---|---|---|
Joey | 18 | ||
Joey | Male | ||
Joey | Engineer |
I tried groupby().first()
but that doesn't work
because it gives such a table:
Name | Age | Gender | Occupation |
---|---|---|---|
Joey | 18 |
But I want a table like this:
Name | Age | Gender | Occupation |
---|---|---|---|
Joey | 18 | Male | Engineer |
I have table like this, and I want to merge all the rows by name and get age, gender and occupation in the same row.