Three branches send one small table each. Build them from wide: for each month column (Jan, Feb, Mar), a table with city and sales plus a month column naming the file. Stack the three tables into one (fresh index), drop rows with missing sales, and store the total sales per month in result (a Series, months in file order).
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.