-
Notifications
You must be signed in to change notification settings - Fork 7
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 sort rows after aggregation? #10
Comments
Very good suggestion! I have sorting output in my todo list. I am not quite sure what would be the most convenient syntax for specifying that.
In the meantime, it is still possible to sort the output manually with |
Cool! I think I would prefer a separate Specifying column types for sorting the same way it's done in org-tables makes sense, I think. So I actually have one more idea/suggestion for your package. I'm gonna quickly open a separate issue for that since it's not related. |
Ok, sorting the output table is now implemented. Sorting instructions can be added to any column, either a key column or a formula column. This is done by adding a semicolon and a caret to the column specification: There is no separate Org Mode conventions are used:
I close this issue. Feel free to open a new issue in case of a bug or something. |
Hey, just want to leave a big thank you! 🙂 Unfortunately, I had Emacs config issues and couldn't check it out earlier. But thanks to |
You are welcome! |
Is it possible to sort the rows based on values after aggregation? If I group by one variable and sum values based on that grouping, it is often desired to get back the results in descending order of the calculated sum values. This would be very handy.
By the way: what a cool package, thanks a lot! I used to do all these things via Python source code blocks using pandas, but this is much quicker for simple aggregations 🤓
The text was updated successfully, but these errors were encountered: