python access each group code example
Example: python access each group
gb = df.groupby(['A'])
for k, gp in gb:
print 'key=' + str(k)
print gp
gb.get_group('foo')
gb = df.groupby(['A'])
for k, gp in gb:
print 'key=' + str(k)
print gp
gb.get_group('foo')