I have the following dataframe
[![enter image description here][1]][1]
I want to remove the duplicates in ID column and keep all the values corresponding to other columns in one row as shown below
[![enter image description here][2]][2]
I used iterrows but didn't get the required result. Please help me with python code. [1]: https://i.stack.imgur.com/1J22k.png [2]: https://i.stack.imgur.com/kZKYc.png