def checkformat(df):
if df['A'] == 0:
return 0
else:
return np.log(df['A'] / df['B'])
df['C'] = df.apply(checkformat, axis=1)请问以上代码,改成apply调用lambda函数怎么用?谢谢!
添加回答
举报
0/150
提交
取消