Simple solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\nUsing the standard pandas built-in function!\n\n# Complexity\n- Time comp
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\nUsing the standard pandas built-in function!\n\n# Complexity\n- Time complexity:\nO(n)\n\n- Space complexity:\nO(n)\n\n# Code\n```pythondata []\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return weather.pivot(index=\'month\', columns=\'city\', values=\'temperature\')\n```
['Pandas']