I do an aggregation sum on all columns in a dataframe with a code similar like this:
df_aggregated = df.groupBy('key').sum()
Result columns have changed his name for a pattern like this:
sum(colum1), sum(colum2)
I need change all new column's name to previous name
I tried to use 'alias', but I have too many columns and I would like something more automatic