zl程序教程

您现在的位置是:首页 >  其它

当前栏目

成功解决AttributeError: 'DataFrame' object has no attribute 'reshape'

解决 成功 No object has attribute dataframe AttributeError
2023-09-14 09:04:51 时间

成功解决AttributeError: 'DataFrame' object has no attribute 'reshape'

 

 

目录

解决问题

解决思路

解决方法


 

 

解决问题

AttributeError: 'DataFrame' object has no attribute 'reshape'

 

 

解决思路

属性错误:“DataFrame”对象没有属性“reshape”

 

 

解决方法

“DataFrame”对象没有,但是DataFrame.values有该方法!
DataFrame.values.reshape(-1, 1)

哈哈,大功告成!