但是,它向我显示了一个typeError。TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coercedldata[1] return subdata
out =
我正在使用statsmodels.api应用向后消除,代码给出了这个错误:‘`TypeError: ufunc 'isfinite’不支持输入类型,并且根据强制转换规则''safe'‘,输入不能被安全地强制为任何支持的类型Python\Python37\lib\site-packages\statsmodels\base\data.py", line 125, in _handle_constant
\Python37-32\lib\site-packages\numpy\ma\core.py", line 2366, in masked_invalidTypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely我尝试过不使用.values,但这也会返回相同的错误(这在.
我需要帮助来运行我的代码,它显示错误:- "TypeError: ufunc 'isfinite‘不支持输入类型,并且根据转换规则’‘safe’‘,输入不能被安全地强制为任何支持的类型。“ 我找到的解决方案很少(statsmodels raises TypeError: ufunc 'isfinite' not supported for the input
Christina\anaconda3\lib\site-packages\numpy\ma\core.py", line 2377, in masked_invalid
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely