标题: [python error]‘float‘ object has no attribute ‘log‘ / loop of ufunc does not support argument 0 of type [打印本页] 作者: awagink 时间: 2021-1-17 11:43 标题: [python error]‘float‘ object has no attribute ‘log‘ / loop of ufunc does not support argument 0 of type [python error]‘float‘ object has no attribute ‘log‘ / loop of ufunc does not support argument 0 of type
报错情况:
原来的对数转换(如下),前面调过一些数后就报错。
np.log(data['Item']+1)
复制代码
(, 下载次数: 0)
上传
点击文件名下载附件
AttributeError Traceback (most recent call last)
AttributeError: ‘float’ object has no attribute ‘log’
TypeError: loop of ufunc does not support argument 0 of type float which has no callable log method