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