I have a data-frame which looks like:
A       B       C       D       E
a       aa      1       2       3
b       aa      4       5       6
c       cc      7       8       9
d       cc      11      10      3
e       dd      71      81      91
As rows (1,2) and rows (3,4) has duplicate values of column B. I want to keep only one of them.
The Final output should be:
A       B       C       D       E
a       aa      1       2       3
c       cc      7       8       9
e       dd      71      81      91
How can I use pandas to accomplish this?