对dataframe绘图并保存:

ax = df.plot() 
fig = ax.get_figure()
fig.savefig('fig.png')

 

可以制定列,对该列各取值作统计:

label_dis = df.label.value_counts()
ax = label_dis.plot(title='label distribution', kind='bar', figsize=(18, 12))
fig = ax.get_figure()
fig.savefig('label_distribution.png')

 

相关文章:

  • 2022-01-01
  • 2022-01-11
  • 2021-04-16
  • 2021-06-16
  • 2022-12-23
  • 2021-05-24
  • 2021-06-14
猜你喜欢
  • 2021-08-08
  • 2021-04-25
  • 2021-12-03
  • 2022-12-23
  • 2022-02-17
  • 2021-07-11
  • 2021-07-22
相关资源
相似解决方案