reshaping the data pivoting
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

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

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

# Code
```pythondata []
import pandas as pd
from typing import List
def pivotTable(weather: pd.DataFrame) -> pd.DataFrame: 
    return weather.pivot(
        index='month',
        columns='city',
        values='temperature'
    )
    weather = {
        'city':['Jacksonville','Jacksonville','Jacksonville','Jacksonville','Jacksonville','ELPaso','ELPaso','ELPaso','ELPaso','ELPaso'],
        'month':['January','February','March','April','May','January','February','March','April','May'],
        'temperature':[13,23,38,5,34,20,6,26,2,43]
    }
    df = pd.DataFrame(weather)
    print(df)
```
['Pandas']