python 报错 AttributeError: 'Series' object has no attribute 'reshape' 处理

python AttributeError: 'Series' object has no attribute 'reshape' 报错处理

在python的 Series结构中无reshape方法,就会报该异常

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

处理方法:先使用Series的valuse方法将Series对象转化为numpy的ndarray,再用ndarray的reshape方法

上一篇 下一篇


推荐文章

评论
说点什么吧?

发表评论

取消回复
  最新文章