I have a dataFrame with this columns (site_id,meter_id,timestamp,energy_type).
I'd like grouping by 2 columns (timestamp,energy_type).
Once done, I need to transform every group using a function.
df.groupby(timestamp,energy_type).<transform_every_group_with_a_function>()
From the groupby, I receive back a RelationalGroupedDataset, how can I transform every group using a function?
thank you