Let's say we have the following data on excel,
Column1 | Column2 | Column3 | .... Column n
A | 10 | a
A | 10 | b
A | 10 | c
B | 15 | d
B | 15 | e
B | 15 | f
C | 20 | g
C | 20 | h
.
.
.
I would like to modify it to,
Column1 | Column2 | Column3 | .... Column n
A | 10 | a
| | b
| | c
B | 15 | d
| | e
| | f
C | 20 | g
| | h
.
.
.
I tried using the drop_duplicates (from pandas) technique but it deletes other rows too.
I can do the task manually, but I am trying to find a way of achieving the above through using python, any thoughts?