Two new columns based on return has two values in dataframe apply

后端 未结 0 2002
无人共我
无人共我 2020-12-09 11:47

I have a DataFrame:

    Num
     1
     2
     3
def foo(x):
    return x**2, x**3

When I did df[\'sq\',\'cube

相关标签:
回答
  • 消灭零回复
提交回复
热议问题