import pandas as pd
df = pd.DataFrame() ...loads data...
def modify_column(x): """ modify x"""" return modified_x
df['column_name'].apply(lambda x: modify_column(x))
import pandas as pd
df = pd.DataFrame() ...loads data...
def modify_column(x): """ modify x"""" return modified_x
df['column_name'].apply(lambda x: modify_column(x))