python access each group
gb = df.groupby(['A'])
for k, gp in gb:
print 'key=' + str(k)
print gp
gb.get_group('foo')
Are there any code examples left?
New code examples in category Python
gb = df.groupby(['A'])
for k, gp in gb:
print 'key=' + str(k)
print gp
gb.get_group('foo')