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

How to Group By with multiple columns? #7243

Open
chuongmep opened this issue Sep 24, 2024 · 1 comment
Open

How to Group By with multiple columns? #7243

chuongmep opened this issue Sep 24, 2024 · 1 comment
Labels
enhancement New feature or request untriaged New issue has not been triaged

Comments

@chuongmep
Copy link

chuongmep commented Sep 24, 2024

Is your feature request related to a problem? Please describe.
I want can use GroupBy with list input column for dataframe

Describe the solution you'd like
A clear and concise description of what you want to happen.

It could be good like this and allow return with new dataframe

var groupBy = df.GroupBy(new string[] { "Area", "Level" });

Or :

df.GroupBy("Level", "Building Name").Select("Source File", "Area", "Level", "Building Name");

This is python :

df_report_grouped = df_report.groupby(['Building Name', 'Level'])['Area'].sum().reset_index()

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@chuongmep chuongmep added the enhancement New feature or request label Sep 24, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Sep 24, 2024
@asmirnov82
Copy link
Contributor

Hi, @chuongmep this is duplicated to #5724 and was initialy planned for ML.Net 3.0 (however looks like development was postponed). See more details here: #6144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants