question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for multiple aggregations on a single column

See original GitHub issue

It’d be useful if we could perform multiple aggregations on a single column like pandas.

df.groupby('a').agg({'b': ['min', 'max', 'mean']})

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ueshincommented, Jul 25, 2019

Hi @harupy, We recently added a basic multi-index support in columns (#590). Does that help you submit a PR?

1reaction
rxincommented, Jul 3, 2019

@harupy would you be able to submit a pull request to address this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple aggregations of the same column using pandas ...
To support column-specific aggregation with control over the output column names, pandas accepts the special syntax in GroupBy.agg() , known ...
Read more >
Group and Aggregate by One or More Columns in Pandas
Here's a quick example of how to group on one or multiple columns and summarise data with aggregation functions using Pandas.
Read more >
Group rows of data (Power Query) - Microsoft Support
Select Home > Group by. In the Group by dialog box, select Advanced to select more than one column to group by. Add...
Read more >
How to Calculate Multiple Aggregate Functions in a Single ...
Let's imagine, we'd like to add more combinations of grouping columns, e.g.. SELECT language_id, rating, count (*). FROM ...
Read more >
Pandas GroupBy Multiple Columns Explained
groupby() can take the list of columns to group by multiple columns and use the aggregate functions to apply single or multiple aggregations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found