SyntaxFix
Write A Post
Hire A Developer
Questions
df['FirstName']=df['ID'].apply(lambda x: 'Matt' if x==103 else '') df['LastName']=df['ID'].apply(lambda x: 'Jones' if x==103 else '')