Modify or create dataframe columns using the .apply() function code example Example: python pandas apply to one column df['a'] = df['a'].apply(lambda x: x + 1)