Skip to content

GroupBy Aggregate Count TypeError #321

@HYPERTONE

Description

@HYPERTONE

Given a dataset, it can be grouped via:

group_test = rt.rt_groupby.GroupBy(new_ds, 'day')['someLatency']

Upon attempting to aggregate using AggNames= {'count', 'cumsum', 'first', 'last', 'max', 'mean', 'median', 'min', 'nanmax', 'nanmean', 'nanmedian', 'nanmin', 'nanstd', 'nansum', 'nanvar', 'nth', 'std', 'sum', 'var'} as per documentation

A TypeError is thrown:

>>> group_test.agg({'someLatency' : ['sum', 'mean', 'median', 'nth', 'count']})

>>> TypeError: count() takes 1 positional argument but 2 were given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions