JavaShuo
欄目
標籤
【Python】報錯:AttributeError: ‘DataFrame‘ object has no attribute ‘as_matrix‘ 問題解決
時間 2021-08-15
標籤
python
數據分析
機器學習
bug
欄目
Python
简体版
原文
原文鏈接
在使用pandas 時遇到了, AttributeError: 'DataFrame' object has no attribute 'as_matrix' 這樣的報錯,但 as_matrix() 這個方法在舊版本的pandas中使用,新版本的pandas已經刪除 並且用 values 來替代這個方法,如下: df.as_matrix 改成-----> df.values
>>阅读原文<<
相關文章
1.
【問題解決】AttributeError: 'Series' object has no attribute 'as_matrix'
2.
AttributeError: 'DataFrame' object has no attribute 'map'
3.
Python報錯:AttributeError: 'RACNN' object has no attribute 'module'
4.
'DataFrame' object has no attribute 'sort'
5.
【KERAS】報錯 AttributeError: 'Tensor' object has no attribute '_keras_shape'
6.
robotframework報錯:AttributeError: 'TestApp' object has no attribute 'cookiejar'
7.
pyinstaller 報錯 AttributeError: 'str' object has no attribute 'decode'
8.
python3報錯「AttributeError: 'set' object has no attribute 'items'「
9.
mmdetection 報錯: AttributeError: ‘ConfigDict‘ object has no attribute ‘pipeline‘
10.
Django2.2報錯-AttributeError: ''str'' object has no attribute ''decode'...
更多相關文章...
•
Redis樂觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
Redis悲觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
PHP Ajax 跨域問題最佳解決方案
•
IntelliJ IDEA中SpringBoot properties文件不能自動提示問題解決
相關標籤/搜索
Python問題解決
問題解決
解決問題
問題&解決
python 錯誤解決
Python 解決錯誤
attributeerror
attribute
未解決問題
問題-已解決
應用數學
Python
Spark
NoSQL教程
MyBatis教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
CVPR 2020 論文大盤點-光流篇
2.
Photoshop教程_ps中怎麼載入圖案?PS圖案如何導入?
3.
org.pentaho.di.core.exception.KettleDatabaseException:Error occurred while trying to connect to the
4.
SonarQube Scanner execution execution Error --- Failed to upload report - 500: An error has occurred
5.
idea 導入源碼包
6.
python學習 day2——基礎學習
7.
3D將是頁遊市場新賽道?
8.
osg--交互
9.
OSG-交互
10.
Idea、spring boot 圖片(pgn顯示、jpg不顯示)解決方案
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
【問題解決】AttributeError: 'Series' object has no attribute 'as_matrix'
2.
AttributeError: 'DataFrame' object has no attribute 'map'
3.
Python報錯:AttributeError: 'RACNN' object has no attribute 'module'
4.
'DataFrame' object has no attribute 'sort'
5.
【KERAS】報錯 AttributeError: 'Tensor' object has no attribute '_keras_shape'
6.
robotframework報錯:AttributeError: 'TestApp' object has no attribute 'cookiejar'
7.
pyinstaller 報錯 AttributeError: 'str' object has no attribute 'decode'
8.
python3報錯「AttributeError: 'set' object has no attribute 'items'「
9.
mmdetection 報錯: AttributeError: ‘ConfigDict‘ object has no attribute ‘pipeline‘
10.
Django2.2報錯-AttributeError: ''str'' object has no attribute ''decode'...
>>更多相關文章<<