loop of ufunc does not support argument 0 of type str which has no callable log method

后端 未结 0 1390
野性不改
野性不改 2020-11-30 03:10

For an assignment I have to calculate the log returns of stocks. After I write df_ret = 100*(np.log(df) - np.log(df.shift(1))) I get the following error:

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