-4
私は次のような機能を持っています。ここでは、複数の引数行と浮動小数点値をとるラムダがあります。私が走っている間、私は何が原因であるかを間違えているのですか?適用関数の引数が複数あるラムダ
def func():
Top15 = create_frame()
total_citations = Top15['Citations'].sum()
ratioof_selfcitations_to_totalcitations = Top15.apply(lambda (row, total): (row['Self-citations']/total),
total_citations)
return ratioof_selfcitations_to_totalcitations
FUNC
どのようなエラーが報告されましたか?あなたはPythonのバージョンを使用していますか? – Netwave