Related to #28333 and #26513
There are several helper methods to help with named aggregations, that are found in pandas.core.groupby.generic, namely:
If this functionality gets standardized across aggregations other than just groupby, it would make sense to have these moved out of this file.