pivot()
Watch pivot() tutorial\njs\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return weather.pivot(index= \'month\', columns= \
- [Watch pivot() tutorial](https://youtu.be/xPPs59pn6qU?si=rT3DxphnQm__hkXy)\n```js\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return weather.pivot(index= \'month\', columns= \'city\', values= \'temperature\')\n```
['Pandas']