Super-simple Python solution | Beginner friendly
Code
# Code
```pythondata []
import pandas as pd

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