相关疑难解决方法(0)

将pandas DataFrame.plot填充到matplotlib子图中

我的脑袋疼

我有一些代码可以在一个长列中生成33个图形

#fig,axes = plt.subplots(nrows=11,ncols=3,figsize=(18,50))
accountList =  list(set(training.account))
for i in range(1,len(accountList)):
    training[training.account == accountList[i]].plot(kind='scatter',x='date_int',y='rate',title=accountList[i])
#axes[0].set_ylabel('Success Rate')
Run Code Online (Sandbox Code Playgroud)

我想把这些情节中的每一个都放到我上面评论过的图中,但我所有的尝试都失败了.我试着投入ax=i情节命令然后得到'numpy.ndarray' object has no attribute 'get_figure'.此外,当我缩小并用一个一个图中的单个绘图进行此操作时,我的x和y标度都会变为heck.我觉得我接近答案,但我需要一点点推动.谢谢.

python matplotlib pandas

12
推荐指数
1
解决办法
6628
查看次数

标签 统计

matplotlib ×1

pandas ×1

python ×1