This code beats 99% 
IntuitionReshape the DataFrame to analyze temperatures by city and month in a structured format.ApproachUse pivot to reorganize the DataFrame. Set month as rows
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
Reshape the DataFrame to analyze temperatures by city and month in a structured format.
# Approach
<!-- Describe your approach to solving the problem. -->
Use pivot to reorganize the DataFrame. Set month as rows, city as columns, and temperature as values, creating a table with cities as columns indexed by months.
# Complexity
- Time complexity: 𝑂(𝑛)

<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity: O(k) (output size)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```pythondata []
import pandas as pd

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