Day 13 | Introduction to Pandas
Complexity
Time complexity: O(n)
Space complexity: O(n)
Code
# Complexity
- Time complexity: O(n)
- Space complexity: 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
```
['Python3', 'Pandas']