Utwórz wiele nowych kolumn z Applant Panand
df[['square x', 'cube x']] = df['col x'].apply(f)
Motionless Magpie
df[['square x', 'cube x']] = df['col x'].apply(f)
def f(x):
return pd.Series([x*x, x*x*x])