Como posso agregar sem grupo em pandas
df.groupby(lambda _ : True).agg(new_col_name = ('col_name', 'agg_function'))
Black Badger
df.groupby(lambda _ : True).agg(new_col_name = ('col_name', 'agg_function'))
grouped = df.groupby('id').agg({'col1': [('name1', 'sum')], 'col2': [('name2_mean', 'sum'), ('name2_custom_std', lambda x: np.std(x))]})
grouped.columns = grouped.columns.droplevel()