Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/348.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ufunc的循环不支持浮点类型的参数0,该参数没有可调用的exp方法错误_Python_Function_Anaconda_Exp - Fatal编程技术网

Python ufunc的循环不支持浮点类型的参数0,该参数没有可调用的exp方法错误

Python ufunc的循环不支持浮点类型的参数0,该参数没有可调用的exp方法错误,python,function,anaconda,exp,Python,Function,Anaconda,Exp,我需要下面代码的帮助。问题在于函数“a”中的exp。我想我必须以某种方式把它们转换成float,但我不知道怎么做。非常感谢您的帮助。谢谢大家! P=sample_data.column_g.iloc[1:18] dP=sample_data.column_h.iloc[1:18] T=sample_data.column_i.iloc[1:18] dt=sample_data.column_j.iloc[1:18] y=1.1/(8.62*10**(-5)*T) a=1-

我需要下面代码的帮助。问题在于函数“a”中的exp。我想我必须以某种方式把它们转换成float,但我不知道怎么做。非常感谢您的帮助。谢谢大家!

P=sample_data.column_g.iloc[1:18]
dP=sample_data.column_h.iloc[1:18]
T=sample_data.column_i.iloc[1:18]   
dt=sample_data.column_j.iloc[1:18]
        
y=1.1/(8.62*10**(-5)*T)
a=1-(15/np.pi**4)*(-(y**3)*np.log(1-np.exp(-y))+(6+6*y+3*(y**2))*np.exp(-y))