using pivot()

```pythondata []
import pandas as pd

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