Simple Pivot
IntuitionDirectly we can use an inbuilt function to pivot  called df.PivotApproachPivot function uses the following arguments
DataFrame.pivot(*, columns, index=
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
Directly we can use an inbuilt function to pivot  called df.Pivot
# Approach
<!-- Describe your approach to solving the problem. -->
Pivot function uses the following arguments 
DataFrame.pivot(*, columns, index=<no_default>, values=<no_default>)
Wehere * is the dataframe itself, columns is the data where we need to change the rows to columns names , index is the data selected to maintain uniqueness, and values is the final data cell values to be filled
# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```pythondata []
import pandas as pd

def pivotTable(weather: pd.DataFrame) -> pd.DataFrame:
    return weather.pivot(index='month', columns='city' ,values='temperature')
    
```
['Pandas']