Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupBy Aggregate Count TypeError #321

Open
HYPERTONE opened this issue Aug 25, 2022 · 0 comments
Open

GroupBy Aggregate Count TypeError #321

HYPERTONE opened this issue Aug 25, 2022 · 0 comments

Comments

@HYPERTONE
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant