Use pivot() to solve this problem
Code
# Code
```python []
import pandas as pd

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