EASY Solution || One liner 
Code
# Code
```python3 []
import pandas as pd

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

#The Parameters of the function pivot are 
#    data : DataFrame
#    columns : str or object or a list of str
#        Column to use to make new frame's columns.
#    index : str or object or a list of str, optional
#        Column to use to make new frame's index. If not given, uses #existing index.
#    values : str, object or a list of the previous, optional
#        Column(s) to use for populating new frame's values. If not
#        specified, all remaining columns will be used and the result will have hierarchically indexed columns.

 

['Pandas']