Buat kolom multi -baru dari apply panda
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])