add title to collection of pandas hist plots

后端 未结 4 971
盖世英雄少女心
盖世英雄少女心 2020-12-23 16:29

I\'m looking for advice on how to show a title at the top of a collection of histogram plots that have been generated by a pandas df.hist() command. For instance, in the his

4条回答
  •  無奈伤痛
    2020-12-23 17:03

    With newer Pandas versions, if someone is interested, here a slightly different solution with Pandas only:

    ax = data.plot(kind='hist',subplots=True,sharex=True,sharey=True,title='My title')
    

提交回复
热议问题