成功解决AttributeError: ‘Series‘ object has no attribute ‘name’
生活随笔
收集整理的這篇文章主要介紹了
成功解决AttributeError: ‘Series‘ object has no attribute ‘name’
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
成功解決AttributeError: 'Series' object has no attribute ‘name’
目錄
解決問題
解決思路
解決方法
解決問題
AttributeError: 'Series' object has no attribute ‘name’
解決思路
屬性錯誤:'Series'對象沒有屬性' name '
解決方法
將pandas.core.series.Series格式轉為pandas.core.frame.DataFrame格式,然后再切片,即可!
df = df.to_frame()總結
以上是生活随笔為你收集整理的成功解决AttributeError: ‘Series‘ object has no attribute ‘name’的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 成功解决TypeError: ‘tupl
- 下一篇: 成功解决OSError: [Errno