Feature/5820 dataframe extend groupby#5821
Merged
pgovind merged 8 commits intodotnet:mainfrom Jun 3, 2021
asmirnov82:feature/5820_dataframe_extend_groupby
Merged
Feature/5820 dataframe extend groupby#5821pgovind merged 8 commits intodotnet:mainfrom asmirnov82:feature/5820_dataframe_extend_groupby
pgovind merged 8 commits intodotnet:mainfrom
asmirnov82:feature/5820_dataframe_extend_groupby
Conversation
added 4 commits
April 27, 2021 01:12
Merge latest changes from dotnet/machinelearning
Back merge from base repository
Member
eerhardt
reviewed
May 28, 2021
Codecov Report
@@ Coverage Diff @@
## main #5821 +/- ##
==========================================
+ Coverage 68.32% 68.35% +0.02%
==========================================
Files 1131 1132 +1
Lines 241291 241368 +77
Branches 25053 25059 +6
==========================================
+ Hits 164863 164978 +115
+ Misses 69923 69888 -35
+ Partials 6505 6502 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
pgovind
reviewed
May 28, 2021
pgovind
reviewed
May 28, 2021
eerhardt
reviewed
Jun 2, 2021
eerhardt
reviewed
Jun 2, 2021
pgovind
reviewed
Jun 2, 2021
pgovind
reviewed
Jun 2, 2021
|
I pushed a commit to fix the remaining comments, so we can be ready for the next preview release. Great work here @asmirnov82, thanks! |
pgovind
approved these changes
Jun 3, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5820
Extend DataFrame GroupBy operation by adding new property Groupings. This property returns collection of IGrouping objects (the same way as LINQ GroupBy operation does). This allows to use syntacs like this:
var groups = dataFrame.GroupBy<TKey>(columnName).Groupings.ToDictionary(g => g.Key, g => g.ToList()); foreach (DataFrameRow row in groups[KeyValue]) { // any code to work with row object }