My 33rd Problem (pd)
ApproachSimply use DataFrame.pivot() built-in function in Pandas.Complexity
Time complexity: O(n)

Space complexity: O(n)
Code
# Approach
<!-- Describe your approach to solving the problem. -->
Simply use DataFrame.pivot() built-in function in Pandas.
# Complexity
- Time complexity: $$O(n)$$ 
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

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

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

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