title: AttributeError: Cannot access callable attribute 'groupby' of 'DataFrameGroupBy' objects
body: <p>I have a dataframe that has 3 columns - </p>
  
  <p><a href="https://i.stack.imgur.com/HZxSF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HZxSF.png" alt="enter image description here"></a></p>
  
  <p>I want to group the columns on the basis of Chopstick Length by doing something like this -</p>
  
  <pre><code>meansByCL = df_chopstick.groupby('Chopstick.Length')['Food.Pinching.Efficiency'].mean().reset_index()
  </code></pre>
  
  <p>but this throws an error - </p>
  
  <pre><code>AttributeError: Cannot access callable attribute 'groupby' of 'DataFrameGroupBy' objects, try using the 'apply' method
  </code></pre>
  
  <p>I'm not sure what this error means. Can anyone tell me what I'm doing wrong or how I can write this code differently?</p>