Akses Python setiap grup

gb = df.groupby(['A'])

for k, gp in gb:
  print 'key=' + str(k)
  print gp
  
gb.get_group('foo')
Troubled Teira