Python/Pandas: How to remove salutations like MR., MS., MISS from a column of a dataframe - Stack Overflow

PHOTO EMBED

Tue Feb 15 2022 08:13:47 GMT+0000 (Coordinated Universal Time)

Saved by @Bambibo9799

print (df)
               Name
0  Miss Hello World
1         Mr. Idiot
2  Ms. Good Morning

df['Name'] = df['Name'].str.split(n=1).str[1]

print (df)
           Name
0   Hello World
1         Idiot
2  Good Morning
content_copyCOPY

If each value has prefix and is possible remove values bfore first space use Series.str.split with n=1 and then select second list by indexing str[1]:

https://stackoverflow.com/questions/66583470/python-pandas-how-to-remove-salutations-like-mr-ms-miss-from-a-column-of-a