![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Debug
专治各种语言开发疑难杂症。
咸鱼米Samey
爱画画的代码搬运工
展开
-
【python】‘DataFrame‘ object has no attribute ‘as_matrix‘
问题解决网上的文章可能比较老,使用的是老版本的pandas,目前新版本的pandas这个方法没有了,更换成了别的实现方式。data.as_matrix()更改为data.iloc[:,:].values原创 2021-11-25 23:16:10 · 1545 阅读 · 1 评论 -
【python】Expected 2D array, got 1D array instead:
问题ValueError: Expected 2D array, got 1D array instead期望2维数组,输入的是一维数组解决Error底下也给了debug提示:Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.即newData = np.array原创 2021-11-25 23:10:24 · 612 阅读 · 0 评论 -
【python】FileNotFoundError: Could not find module ‘lib\site-packages\scipy...
【python】FileNotFoundError: Could not find module ‘anaconda3\envs\python38\lib\site-packages\scipy...问题解决问题FileNotFoundError: Could not find module ‘……anaconda3\envs\py38\lib\site-packages\scipy.libs\libbanded5x.EHDKC2XVYTQQ5MALRS6XN2CUSS6SRL6P.gfortran-w原创 2021-11-25 14:08:50 · 4386 阅读 · 0 评论