If you look at the preceding output, you will notice how this returns a different sized dataset from our normal groupby() functions.

  1. Now, create a new column for an average price in the original dataframe: