Answers for "Check if Dataframe Column contains only Alphabets and No Spaces and No Special Characters"

0

Check if Dataframe Column contains only Alphabets and No Spaces and No Special Characters

df['Last Name Completely Alphabets ?'] = df.apply(lambda x: 1 if x['Last Name'].isalpha() == True else 0, axis = 1)
df['First Name Completely Alphabets ?'] = df.apply(lambda x: 1 if x['First Name'].isalpha() == True else 0, axis = 1)
Posted by: Guest on June-14-2021

Code answers related to "Check if Dataframe Column contains only Alphabets and No Spaces and No Special Characters"

Browse Popular Code Answers by Language