AttributeError: 'OneHotEncoder' object has no attribute '_n_features_outs'
时间: 2023-11-20 20:53:07 浏览: 40
这个错误通常是由于调用了一个不存在的属性或方法导致的。在这种情况下,'OneHotEncoder'对象没有'_n_features_outs'属性,因此会引发AttributeError。可能的原因是你的代码中使用了一个过时的方法或属性,或者你的代码中存在语法错误。你可以检查你的代码并确保你正在调用正确的方法和属性。如果问题仍然存在,你可以尝试更新你的库或重新安装它们来解决问题。
关于引用中的代码,它的作用是将PDF文件写入到指定的文件名中。具体来说,它使用'with'语句打开一个文件,然后使用'pdf_writer.write(out)'将PDF文件写入到该文件中。其中,'path'是PDF文件的路径,'new_酵素.pdf'是你想要保存的文件名。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![png](https://img-home.csdnimg.cn/images/20210720083516.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)