title: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'
body: <p>Got error while extracting the latest of date</p>
  <pre><code>import pandas as pd
  data =[[1,'2020-10-25',100,1] , [1,'2020-10-26',200,2], [2,'2020-10-27',300,3],[2,'2020-10-28',400,4],[3,'2020-10-29',500,5],[3,'2020-10-30',600,6]]
  df = pd.DataFrame(data, columns = ['id','date','price','Quantity'])
  df.loc[df.groupby('id').date.idxmax()]
  </code></pre>
  <p>got error</p>
  <pre><code>  652                         return self._aggregate_item_by_item(name, *args, **kwargs)
      653                     except (AttributeError):
  --&gt; 654                         raise ValueError
      655 
      656         return wrapper
  
  ValueError:
  </code></pre>