I have this following dataset containing two columns full of names:
df = pd.DataFrame({'Player1':[ 'Roger Federer ', 'Alex De Minaur'], 'Player2':['Bernabe Zapata Miralles','Andy Roddick']})
with output:
Player1 Player2
0 Roger Federer Bernabe Zapata Miralles
1 Alex De Minaur Andy Roddick
I need however to convert those names in a pandas DataFrame so it looks like:
Player1 Player2
0 Federer R. Zapata Miralles B.
1 De Minaur A. Roddick A.
Full middle name(if present) - full surname - First letter of this first name followed by a dot.