title: Python Histograms Using Grouped Data
body: <p>I am looking to make Histograms for each group in my grouped data set. Right now it is only producing one graph(and quite honestly i'm not sure what group it even is). There are 21 groups and I want to make one for each, what would I add to my current code so that I can get a graph for each group in my grouped data.</p>
  <p>I am also trying to figure out how to get the total number of patients in the group, the mean, and std for each group and place it at the top (see chart title).</p>
  <p>Any help would be appreciated :)</p>
  <pre><code>#histogram
  ric_group_ser = pd.Series()
  #split on RIC
  grouped_by_ric = cleaned_data_df.groupby('RIC')
  #apply age to RIC column
  for group_name, group_df in grouped_by_ric:
      grouped_ric= group_df['Age']
      print(grouped_ric)
  
  hist_plot =grouped_ric.hist(bins=30, facecolor=&quot;green&quot;, edgecolor=&quot;black&quot;)
  #plt.annotate(&quot;mean: %.2f&quot; %(np.mean(data_df)), xy=(105.0, 85.0))
  plt.title(&quot;Age Histogram:&lt;RIC&gt; Age (N=&lt;total&gt;): Mean: &lt;2 decimal places&gt;, StdDev: &lt;2 decimal places&gt;&quot;)
  plt.xlabel(&quot;Age(years)&quot;)
  plt.ylabel(&quot;Frequency&quot;)
  plt.grid(False)
  
  #plt.savefig(&quot;Histogram&quot;)
  plt.show()
  </code></pre>