Do your groupby, and use reset_index() to make it back into a DataFrame. Then sort.
grouped = df.groupby('mygroups').sum().reset_index()
grouped.sort_values('mygroups', ascending=False)
More Related Contents:
- How to sort a dataFrame in python pandas by two or more columns?
- pandas groupby sort within groups
- Naturally sorting Pandas DataFrame
- How to use Thrust to sort the rows of a matrix?
- what is natural ordering when we talk about sorting?
- pandas groupby, then sort within groups
- sorting by a custom list in pandas
- Why does my Pandas DataFrame not display new order using `sort_values`?
- Sort a pandas dataframe series by month name
- What is a better way to sort by a 5 star rating?
- Associatively sorting a table by value in Lua
- Code an Excel VBA sort with a custom order and a value containing commas
- is it possible to do quicksort of a list with only one passing?
- jqGrid with Custom sorttype
- How to calculate time difference by group using pandas?
- python, sort descending dataframe with pandas
- Radix Sort for Negative Integers
- Python – Delete duplicates in a dataframe based on two columns combinations?
- How do I sort an array of structs by multiple values?
- SQL Sorting and hyphens
- What is the shortest way to simply sort an array of structs by (arbitrary) field names?
- Sorting by absolute value without changing the data
- Sort a Table[] in Lua
- Underscore.js Case Insensitive Sorting
- Custom sorting with Pandas
- How to sort pandas data frame using values from several columns?
- OpenGL depth sorting
- numerical sort a column containing numbers and strings (pandas/python)
- How to define (and name) the corresponding safe term comparison predicates in ISO Prolog?
- Sorting a pandas series