Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

New api for DataFrame.groupBy() provided by GroupedDataFrame #8

Closed
Gmousse opened this issue Sep 2, 2016 · 1 comment
Closed

New api for DataFrame.groupBy() provided by GroupedDataFrame #8

Gmousse opened this issue Sep 2, 2016 · 1 comment
Assignees

Comments

@Gmousse
Copy link
Owner

Gmousse commented Sep 2, 2016

A new api for groupBy will coming soon.

.groupBy() now returns a GroupedDataFrame object.

GroupedDataFrame provides a groupBy on multiple columns ( #4 ) and a method .aggregate() used to apply a function on each group.

example: df.groupBy('column1', 'column2').aggregate(group => group.count())

The aggregation returns a DataFrame with columns: ['column1', 'column2', 'aggregation']

@Gmousse
Copy link
Owner Author

Gmousse commented Sep 3, 2016

The new api will be more accurate while applying groupBy on NaN and undefined (Object.is instead of ===)

@Gmousse Gmousse closed this as completed Sep 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant