I have the following dataframe: idx val1 val20 15 121 14 382 11 883 95 214 19 985 12 486 35 387 25 398 65 28 I created two lists based on index say. list1 = [0, 3, 6] list2 = [5, 8] I tried to write a code wherein index values from list1 takes val1 data and list2 takes val2 data and same is sorted on index. My output list should be output = [15, 95, 48, 35, 28] Continue reading...