Finance sends one column per month. Reshape wide into a long table with the columns city, month and sales (one row per city and month, missing values kept). Sort by city from A to Z, keeping each city's months in the order Jan, Feb, Mar, and reset the index. Store it in result.
import pandas as pd
wide = pd.DataFrame({
"city": ["Pune", "Delhi", "Mumbai"],
"Jan": [120, 210, 340],
"Feb": [135, None, 360],
"Mar": [150, 190, 355],
})Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.