title: Python Plots - Loop through unique values of a feature and plot
body: <p>I have a feature in my pandas data frame which can take on (potentially) several levels. I can obtain the unique levels using the following:</p>
  
  <p><code>reasons = df["Reason"].unique()</code></p>
  
  <p>I can plot a the counts of all the levels on a single graph doing the following:</p>
  
  <p><code>for reason in reasons:
      df[df['Reason']== reason].groupby('date').count()['twp'].plot()
      plt.title(reason)
      plt.tight_layout()</code></p>
  
  <p>How can I modify this code so that it can create a separate graph for each level? Furthermore, I would want ensure scalability as well. (For example if the number of unique levels is currently 3, but in the future we can end up with 5 levels). </p>
  
  <p>Thank you in advance!</p>