pandas effectuer l'action sur la colonne
df['col1'] = df['col1'].apply(complex_function)
Tired Turtler
df['col1'] = df['col1'].apply(complex_function)