There's a dataset that has yearly data in string format as -
Year Products bought
FY 2021-11 (Nov) 100
FY 2022-03 (Mar) 520
FY 2021-10 (Oct) 250
FY 2022-12 (Dec) 400
..... .....
FY 2022-01 (Jan) 800
I want to set the month column based on orderly year and month. I have performed df.sort['Year'] but gives result in different order. How can I set it in form of -
Year Products bought
FY 2021-10 (Oct) 250
FY 2021-11 (Nov) 100
FY 2022-03 (Mar) 520
FY 2022-01 (Jan) 800
..... .....
FY 2022-12 (Dec) 400