this is my sample dataframe
data={'ColA':["A","A","B","B"],"ColB":["XYZ","PQR","XYZ","PQR"], "ColC":[4, 100, 100, 19], "ColD" : [0,0,0,0]}
df= pd.DataFrame(data)
I want to do an operation similar to excel merge so that the output should look like this.
My objective is to only combine Col A without doing any operations on the other columns or the index. I do not want to turn ColA into an index. Is there an option to do this in python. I need the output for visualization and hence the need for this merge.