how to use apply function to specific column in pandas code example Example: python pandas apply function to one column df['a'] = df['a'].apply(lambda x: x + 1)