腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
Python
错误
:“
Series
”
对象
没有
“
flatten
”
属性
、
、
、
我是
Python
的新手,我正在尝试使用一个相当简单的线性回归模型。当我尝试运行这行代码时,我得到
错误
'
Series
‘
对象
没有
'
flatten
’
属性
df4= pd.DataFrame({'Actual': y_test.
flatten
(), 'Predicted':y_pred.
flatten
()}) 因为我的值是回归的输出,所以我相当确定它是一个数组,并且在我的代码中我<e
浏览 83
提问于2019-05-09
得票数 3
1
回答
错误
'
Series
‘
对象
没有
属性
'boxplot’
我有df4,这是从1月1日到8月26日的数据。df5是从1月1日到2月28日的数据,我正在尝试创建箱线图来显示每个季节的数据。这是我的代码。有人知道我哪里错了吗? df5 = df4[pd.date_range(start = '01/01/2020', end = '28/02/2020')]df5.boxplot() plt.show() 很抱歉这个网站的布局,我是新来的。每个空格由一行分隔。
浏览 16
提问于2021-04-16
得票数 0
2
回答
AttributeError:'NoneType‘
对象
没有
属性
'strftime'AttributeError:'NoneType’
对象
没有
属性
'strftime‘
、
我得到了"AttributeError:'NoneType‘
对象
没有
属性
'strftime'AttributeError:'NoneType’
对象
没有
属性
'strftime'“的
错误
。ipython-input-96-a5697ab98b57> in <module> /opt/conda
浏览 26
提问于2022-07-16
得票数 0
1
回答
Fbprophet
错误
“
Series
”
对象
没有
属性
“no error”
、
、
、
prediction_size = 30model.fit(train_df) 此model.fit()方法引发以下
错误
ipython-input-20-014bed53c8b5> in <module>()----> 2 model.fit(train_df) /anaconda3/lib/
python
3.6min_dt = dt.iloc[dt.no
浏览 22
提问于2020-03-29
得票数 1
1
回答
解析嵌套JSON并迭代到Pandas Dataframe
、
、
、
、
我试着和下面的人混在一起,但
没有
成功。to produce a
python
dataframe: out = {} for i in venues(): json_flat_venues 会产生一个
错误
,说明“dict”<em
浏览 2
提问于2021-08-11
得票数 0
回答已采纳
1
回答
Go中的JSON和结构组合
、
、
、
、
我需要使用以下JSON对这些
对象
进行解码/编码:{ name: 'Fox'{ name: 'The Simpsonsname: 'The Simpsons' season: { name: 'Season 3'}
Seri
浏览 0
提问于2017-04-01
得票数 1
1
回答
Series
对象
没有
属性
'strip‘
、
、
300我试着这样做:但是有一个
错误
: '
Series
' object has no attribute 'strip'
浏览 0
提问于2016-02-27
得票数 11
回答已采纳
1
回答
“‘
Series
”
对象
没有
属性
“iplot”
、
、
在过去的两个小时里,我一直在尝试解决这个问题,并且一直在想如何解决这个
错误
--我看过youtube视频,经历了stackoverflow,但我不明白哪里出了问题。请注意,我正在做一个作业,使用Anaconda和Jupyter notebooks,使用
Python
3。当我尝试绘制时: temp = fp_clean["state"].value_counts().head(30) temp.iplot(kind='bar') 我一直收到以下
错误
: ---------getattribute__(self
浏览 112
提问于2019-03-13
得票数 14
回答已采纳
1
回答
“‘
Series
”
对象
没有
属性
“getformat”
、
、
、
我试图在我的pandas数据帧上运行MLKnn分类器,当我尝试拟合分类器时,我得到了这个
错误
消息:代码如下: from
浏览 16
提问于2021-03-03
得票数 2
1
回答
“‘
Series
”
对象
没有
属性
“datetime”
、
、
recorded_time'])我一直得到的
错误
是: AttributeError: '
Series
' object has no attribute 'datetime'。
浏览 241
提问于2019-11-27
得票数 2
回答已采纳
1
回答
“‘
Series
”
对象
没有
属性
“applymap”
、
、
但我得到"'
Series
‘
对象
没有
’applymap‘
属性
’“
错误
。matplotlib.pyplot as pltfrom matplotlib.pyplot import pie, axis, show from pandas import
Series
浏览 1
提问于2018-03-10
得票数 6
回答已采纳
2
回答
AttributeError:在地质公园绘图时,“PandasArray”
对象
没有
属性
“_str_startswith”
、
、
、
我必须重新设置
python
环境,并得到以下
错误
消息: 613 --> 615 return plot_
series
**style_kwds)
浏览 4
提问于2021-01-02
得票数 0
回答已采纳
1
回答
python
pandas- AttributeError:'
Series
‘
对象
没有
'columns’
属性
?
、
、
、
rolling(center=False,window=6) x['cnt_btwn'] = pd.
Series
(pd.
Series
(y[:-1]).between(z[-1], y[-1], inclusive=True).sum())btwn(x) 我做错了什么?
浏览 2
提问于2016-11-02
得票数 4
回答已采纳
1
回答
通过Dataframe '
Series
‘
对象
的
Python
循环
没有
属性
、
、
print("failed")[a.match('a') for a in [v for i,v in df.items()]] AttributeError:“串联”
对象
没有
属性
浏览 1
提问于2016-10-17
得票数 3
回答已采纳
1
回答
如何修复
属性
错误
:在这个
python
代码中,‘
Series
’
对象
没有
属性
'reshape‘?
、
、
现在我使用的是整形函数,但是它显示了
错误
。 5 i
浏览 0
提问于2019-06-15
得票数 1
回答已采纳
1
回答
调用`praw.helpers`会导致AttributeError:“模块”
对象
没有
属性
“帮助者”
、
、
它毫无问题地登录到Reddit,但是当它到达这段代码时,它会抛出一个
错误
: 我已经检查了帮助文件是否存在于A:\
Python
27\Lib\site-packages\praw\models\
浏览 2
提问于2016-12-16
得票数 1
2
回答
AttributeError:“
Series
”
对象
没有
属性
“days”
、
、
from datetime import datetimedf['days'] = float(df['delta'].days)AttributeError: '
Series
' object has no attribute 'days' 你知道为什么吗?
浏览 1
提问于2017-07-08
得票数 19
回答已采纳
2
回答
“‘
Series
”
对象
没有
属性
“to_datetime”
、
、
但是当我写代码的时候:它只是告诉我感谢您的宝贵时间!
浏览 4
提问于2019-01-23
得票数 12
回答已采纳
1
回答
pandas - 'dataframe‘
对象
没有
属性
'str’
、
、
然而,每当我运行代码时,我都会得到pandas - 'dataframe‘
对象
没有
属性
'str’
错误
。Product是一种
对象
数据类型。
浏览 0
提问于2018-07-24
得票数 9
回答已采纳
1
回答
AttributeError:“
Series
”
对象
没有
“”rolling“”
属性
、
data_frame['100ma']= data_frame['Adj Close'].rolling(window=100, min_periods=0).mean()AttributeError: '
Series
' object has no attribute 'rolling'
浏览 0
提问于2017-08-08
得票数 7
点击加载更多
相关
资讯
python面向对象基础2:设置对象属性
Python对象属性的那些事
Python面向对象之内置类属性
Python教程(22)——Python面向对象的属性和方法
python的类(一)—获取对象信息,实例属性和类属性
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券