<prompt> Andika kazi ya Python ili kupanga safu ya pande mbili kulingana na faharasa ya safu wima uliyopewa  <response>: python def sort_array_by_columnarr, col_index: return sortedarr, keylambda x: xcol_index Mfano ikiwa __name__ __main__: my_arr 1,2,3, 7 ,8,9, 4,5,6 col_Index 2 printpanga_array_by_columnmy_arr, col_Index Hii ingerudi : 1, 2, 3, 4, 5, 6, 7 . col_index kwa mpangilio wa kupanda. 