pandas のDataFrameのapplyで複数列を返す場合のサンプルです。 ... return x["x"]+1,x["x"]+2 df[["a","b"]]=df.apply(lambda x:fnc(x),axis=1, ...
確定! 回上一頁