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.
跳槽面試的幾個實用小技巧,不妨看看!
2.
Mac實用技巧 |如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
3.
Mac實用技巧 |如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
4.
如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
5.
Mac OS非兼容Windows軟件運行解決方案——「以VMware & Microsoft Access爲例「
6.
封裝 pyinstaller -F -i b.ico excel.py
7.
數據庫作業三ER圖待完善
8.
nvm安裝使用低版本node.js(非命令安裝)
9.
如何快速轉換圖片格式
10.
將表格內容分條轉換爲若干文檔
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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'...
>>更多相關文章<<