
Debug
专治各种语言开发疑难杂症。
咸鱼米Samey
爱画画的代码搬运工
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【python】‘DataFrame‘ object has no attribute ‘as_matrix‘
问题 解决 网上的文章可能比较老,使用的是老版本的pandas,目前新版本的pandas这个方法没有了,更换成了别的实现方式。 data.as_matrix() 更改为 data.iloc[:,:].values原创 2021-11-25 23:16:10 · 1656 阅读 · 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 · 678 阅读 · 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 · 4753 阅读 · 0 评论