Pandas one liner!!!
\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return pd.pivot(weather,index=\'month\',columns=\'city\',values=\'temperatu
```\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return pd.pivot(weather,index=\'month\',columns=\'city\',values=\'temperature\')\n```
[]