In this recipe, we use the flights dataset to create a pivot table and then recreate it using groupby operations.