Python accède à chaque groupe

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

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