I have a dataframe like this:
Element    Variable
      A       Power
      A     Current
      B       Power
I'd like to combine those rows that are equal in Element separating the conent of the rows by comas:
Element            Variable
      A      Power, Current
      B               Power
 
    