apply in python, apply function for one column in all rows code example Example: python pandas apply function to one column df['a'] = df['a'].apply(lambda x: x + 1)