how to apply a function on each value in dataframe apart from one column python code example
Example 1: pandas apply function to column
df['a'] = df['a'].apply(lambda x: x + 1)
Example 2: python pandas apply function to one column
df['a'] = df['a'].apply(lambda x: x + 1)