腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Matplotlib
错误
:'
str
‘
对象
没有
属性
'
get_figure
’
matplotlib
、
error-handling
、
axis-labels
我的代码如下所示,在ltycs.plot(ax=‘time’)这行代码中,我得到了一个我不理解的
错误
: #PRODUCE AND VISUALIZE FORECAST#from
matplotlib
.dates import MonthLocator2020-11-01 7.587329 2020-12-01 7.
浏览 102
提问于2020-07-28
得票数 0
回答已采纳
1
回答
将多个图形保存到
matplotlib
中的一个pdf文件中
python
、
matplotlib
代码如下所示:from
matplotlib
.backends.backend_pdf import PdfPages plt.figure() pdf.sa
浏览 2
提问于2015-04-04
得票数 9
回答已采纳
2
回答
Python
matplotlib
不保存图表文件
python
、
pandas
、
matplotlib
代码运行清晰-
没有
错误
。当我在Spyder中运行它时,我看到了图表,但是
没有
保存任何东西。
浏览 5
提问于2022-02-11
得票数 0
回答已采纳
1
回答
如何修正"ValueError:视图限制最小值-36881.6小于1并且是无效的
Matplotlib
日期值“?
python
、
pandas
、
python-3.7
152 0.0Traceback (most recent call last): fig = daily_data_f_no_nr.plot(kind=
浏览 3
提问于2020-07-26
得票数 0
回答已采纳
2
回答
属性
错误
:'
str
‘
对象
没有
属性
'
str
’
python
、
regex
、
pandas
、
string
sports-bra-sports-bra-black-abcde1f02-c11.html',1. regex = i.
str
.extracthtml') breakfor idx, row in df.iterrows(): a = row['landing_screen_name'].
str
.contai
浏览 6
提问于2021-04-11
得票数 1
回答已采纳
10
回答
如何将Seaborn图保存到文件中
python
、
pandas
、
matplotlib
、
seaborn
我尝试了以下代码(test_seaborn.py):
matplotlib
.use('Agg')
matplotlib
.style.use='species', size=2.5)fig.savefig("output.png")但是我得到了这个
错误
11,
浏览 3
提问于2015-08-27
得票数 230
1
回答
将dataframe.hist()保存到文件中
python
、
pandas
、
numpy
、
matplotlib
fig=ax.get_figure()第一行工作正常;但是,第二行返回一个
错误
: AttributeError:'numpy.ndarray‘
对象
没有
属性
’get_图‘。因为显示了应用于series.hist()的
get_figure
(),所以我也尝试使用ax=df['ColumnName'].hist(),它成功
浏览 1
提问于2015-07-23
得票数 6
回答已采纳
1
回答
如何解析AttributeError:在绘制子图时,“numpy.ndarray”
对象
没有
属性
“
get_figure
”
python
、
pandas
、
matplotlib
我试图为数据中的每个变量绘制一个散点图,但是遇到了一个我不太确定的
错误
。你能帮上忙吗?[df.columns], axes):返回的
错误
: AttributeError:'numpy.ndarray‘
对象
没有
属性
'
get_figure
'
浏览 4
提问于2020-10-03
得票数 1
2
回答
属性
错误
:'
str
‘
对象
没有
属性
python
、
string
、
attributeerror
我试图在site类变量siteID中存储SiteID的数据条目,但是我得到了这个
属性
错误
。有
没有
人能告诉我哪里出错了?
错误
为:AttributeError: '
str
' object has no attribute 'siteID' #stores site ID
浏览 6
提问于2016-01-04
得票数 1
1
回答
将图例移出分组情节
python
、
pandas
、
matplotlib
我正在使用以下代码创建基于groupby的多个情节:import
matplotlib
.pyplot as plt from
matplotlib
.backends.backend_pdf(x='Year', y=['NDII_Mean', 'RGR_Mean', 'SATVI_Mean', 'SWIR32_Mean', 'NDVI_Mean', 'MTVI_Mean'],tit
浏览 7
提问于2016-03-15
得票数 0
回答已采纳
2
回答
结合两个for循环提高效率
python
、
csv
、
pandas
守则如下:import
matplotlib
.pyplot as plt plot=group.plot(x='Percent', y='SWIR32', title=
str
(group_nam
浏览 4
提问于2016-01-19
得票数 1
回答已采纳
1
回答
在
Matplotlib
中将多个项目绘制为折线图
python
、
pandas
、
matplotlib
然后我会将它们保存为pdf,尽管如果有人知道另一种方法,我
没有
必要这样做。我可以使用此代码绘制一个值(在本例中我将使用lot NDII_Mean ),但我希望绘制所有四列,而不是只绘制一列。我使用的代码是:import
matplotlib
.pyplot as plt plt.figure() Hurst_plots=g
浏览 1
提问于2015-10-01
得票数 0
1
回答
“TensorFlow”
对象
没有
属性
“‘
str
”
错误
’
str
模型
python
、
tensorflow
、
deep-learning
、
keras
、
conv-neural-network
padding= "same",activation=tf.nn.tanh , kernel_initializer = tf.contrib.layers.xavier_initializer())
错误
出现在conv2层,它说- ''
str
‘
对象
没有
'base_dtype’
属性
。
浏览 16
提问于2018-02-14
得票数 0
回答已采纳
1
回答
AttributeError:“
str
”
对象
在
matplotlib
中
没有
“”pop“”
属性
python
、
tensorflow
、
matplotlib
、
keras
这个
错误
出现了,我找不到解释。我正在Pycharm上工作,我也尝试过Anaconda命令提示符。我应该在windows命令提示符上尝试吗?import tensorflow as tfimport numpy as np plt.title("Prediction : ", class_names[np.argmax(prediction[i])]) plt.show(
浏览 37
提问于2019-12-12
得票数 1
1
回答
属性
错误
:'
str
‘
对象
没有
属性
'tk’
python
、
tkinter
、
attributeerror
但是,当我单击Register按钮时,只打开一个空白窗口,python返回一个
错误
。Button(register_screen, text="Register", width=10, height=1).pack()实际结果:Python中的空白窗口,
错误
代码如下_w, string) AttributeError: '
str
' object has no attribute 'tk'
浏览 0
提问于2019-09-10
得票数 0
1
回答
属性
错误
:'
str
‘
对象
没有
属性
'url’
python
、
discord
、
discord.py
、
attributeerror
当我启动不和谐机器人时,上面写着Attributeerror: '
str
' object has no attribute 'url'async def on_member_join(member.guild.system_channel profile_image = await load_image_async(
str
浏览 2
提问于2022-07-06
得票数 0
1
回答
属性
错误
:'
str
‘
对象
没有
属性
'post’
python
、
django
、
django-views
、
payment-gateway
、
razorpay
我是Django的新手,并试图将剃须刀与我的网站整合,但却犯了
错误
。AttributeError:'
str
‘
对象
没有
属性
'post’def order(request, id): 'currency': "INR",
浏览 4
提问于2021-03-17
得票数 1
回答已采纳
1
回答
类
错误
'
str
‘
对象
没有
属性
python
、
class
我的代码有以下
错误
: matrices.matrix_one("") self.MATRIX1=[] AttributeError: '
str
' object has我对python还不熟悉,很可能是构造
错误
的类。任何帮助都是非常感谢
浏览 3
提问于2022-02-08
得票数 -1
回答已采纳
4
回答
将pandas.Series直方图保存到文件
python
、
pandas
、
histogram
在ipython Notebook中,首先创建一个pandas Series
对象
,然后通过调用实例方法.hist(),浏览器显示该图形。
浏览 1
提问于2013-09-25
得票数 96
回答已采纳
2
回答
错误
:“
str
”
对象
没有
属性
“子”
python
、
tree
当我试图显示来自server的树数据时,我得到了
错误
:‘
str
’
对象
没有
属性
‘子
属性
’--请帮助我解决这个问题。Tree('Computer'),Tree('Camera'),Tree('Refrigerator')])])但是,当我从sql服务器动态传递值时,会引发
错误
浏览 8
提问于2022-03-17
得票数 -1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
必背Python单词:常用报错提示单词20个
Python学习(八)-面向对象类之进阶
PHP 8的新功能展望:JIT以及其他
新手如何入门Python基础?学习策略是什么?
10 行代码,9 行报错,8 个警告…一个都逃不掉!
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券