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