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.
Window下Ribbit MQ安装
2.
Linux下Redis安装及集群搭建
3.
shiny搭建网站填坑战略
4.
Mysql8.0.22安装与配置详细教程
5.
Hadoop安装及配置
6.
Python爬虫初学笔记
7.
部署LVS-Keepalived高可用集群
8.
keepalived+mysql高可用集群
9.
jenkins 公钥配置
10.
HA实用详解
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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'
>>更多相关文章<<