title: How to get number of groups in a groupby object in pandas?
body: <p>This would be useful so I know how many unique groups I have to perform calculations on.  Thank you.</p>
  
  <p>Suppose groupby object is called <code>dfgroup</code>. </p>