JavaShuo
栏目
标签
Series object has no attribute reshape解决方法
时间 2021-01-04
标签
机器学习
栏目
应用数学
繁體版
原文
原文链接
如图,在进行reshape操作时,由于采用了pandas,pandas的Series没有reshape而报错 解决方法: 用values方法将Series对象转化成numpy的ndarray,再用ndarray的reshape方法. StandardScaler().fit_transform(data[‘Amount’].values.reshape(-1, 1))
>>阅读原文<<
相关文章
1.
AttributeError: 'builtin_function_or_method' object has no attribute 'reshape'
2.
机器学习案例的小问题,AttributeError: 'Series' object has no attribute 'reshape'的解决
3.
对于 AttributeError: 'Series' object has no attribute 'sort'的解决办法
4.
python 报错'Series' object has no attribute 'sort'
5.
'dict' object has no attribute 'has_key' 解决办法
6.
【问题解决】AttributeError: 'Series' object has no attribute 'as_matrix'
7.
AttributeError: 'Model' object has no attribute 'name'
8.
'module' object has no attribute 'xfeatures2d'(已解决)
9.
'SparkSession' object has no attribute '_gateway'(待解决)
10.
解决 AttributeError: 'ForeignKey' object has no attribute 're'
更多相关文章...
•
SVN 解决冲突
-
SVN 教程
•
C# 特性(Attribute)
-
C#教程
•
SpringBoot中properties文件不能自动提示解决方法
•
PHP Ajax 跨域问题最佳解决方案
相关标签/搜索
解决方法
reshape
attribute
series
解决方案
解决方式
解决办法
object...object
object
解决
应用数学
MyBatis教程
Spring教程
PHP教程
算法
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Mud Puddles ( bfs )
2.
ReSIProcate环境搭建
3.
SNAT(IP段)和配置网络服务、网络会话
4.
第8章 Linux文件类型及查找命令实践
5.
AIO介绍(八)
6.
中年转行互联网,原动力、计划、行动(中)
7.
详解如何让自己的网站/APP/应用支持IPV6访问,从域名解析配置到服务器配置详细步骤完整。
8.
PHP 5 构建系统
9.
不看后悔系列!Rocket MQ 使用排查指南(附网盘链接)
10.
如何简单创建虚拟机(CentoOS 6.10)
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
AttributeError: 'builtin_function_or_method' object has no attribute 'reshape'
2.
机器学习案例的小问题,AttributeError: 'Series' object has no attribute 'reshape'的解决
3.
对于 AttributeError: 'Series' object has no attribute 'sort'的解决办法
4.
python 报错'Series' object has no attribute 'sort'
5.
'dict' object has no attribute 'has_key' 解决办法
6.
【问题解决】AttributeError: 'Series' object has no attribute 'as_matrix'
7.
AttributeError: 'Model' object has no attribute 'name'
8.
'module' object has no attribute 'xfeatures2d'(已解决)
9.
'SparkSession' object has no attribute '_gateway'(待解决)
10.
解决 AttributeError: 'ForeignKey' object has no attribute 're'
>>更多相关文章<<