已解决AttributeError: ‘DataFrame’ object has no attribute ‘reshape’
报错问题
之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:
AttributeError: ‘DataFrame’ object has no attribute ‘reshape’
解决方法
属性错误:“DataFrame”对象没有属性“reshape”
“DataFrame”对象没有,但是DataFrame.values有该方法!
DataFrame.values.reshape(-1, 1)
PS
有问题评论区留言即可