Skip to content

as_index in GroupBy still not fully implemented #181

Closed
@wesm

Description

@wesm
df = DataFrame({'A' : ['foo', 'bar', 'foo', 'bar',
                          'foo', 'bar', 'foo', 'foo'],
                   'B' : ['one', 'one', 'two', 'three',
                          'two', 'two', 'one', 'three'],
                   'C' : randn(8), 'D' : randn(8)})
df
   grouped = df.groupby('A')
grouped = df.groupby('A')
grouped.agg(np.sum)
grouped = df.groupby('A', as_index=False)
grouped.agg(np.sum)
grouped.sum()

Adding @laserson so notifications go through

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions