I have a DataFrame
like the following:
ID NAME TEL_1 TEL_2 TEL_3
1 John 123456 754987 465317
1 John 465987 465987
1 John 546783
2 Robert 264687
2 Robert 462531
3 William 432645 765346 875137
I need to merge the rows that have the same ID
, saving the phone values, like this:
ID NAME TEL_1 TEL_2 TEL_3 TEL_4 TEL_5 TEL_6
1 John 123456 754987 465317 465987 465987 546783
2 Robert 264687 462531
3 William 432645 765346 875137