Python Solution
Code

# Code
```pythondata []
import pandas as pd
def pivotTable(weather: pd.DataFrame) -> pd.DataFrame:
    return weather.pivot(index='month', columns='city', values='temperature')

```
['Pandas']