I'am trying to sort a dataframe by column using df.sort_index. Such strings column, the second, is composed by numbers within text. After operation I've got:
15 rs1820451 32681212 0.441 0.493 0.5358 98.9 29 0 0.441 T:A
14 rs1820450 32680556 0.441 0.493 0.5358 98.9 29 0 0.441 G:C
38 rs1820447 32693541 0.421 0.332 0.0915 94.4 26 0 0.211 G:A
37 rs1820446 32693440 0.483 0.499 0.9633 100.0 30 0 0.475 G:T
7 rs1808502 32660555 0.517 0.46 0.543 100.0 30 0 0.358 C:G
24 rs17817908 32687035 0.407 0.362 0.6159 98.9 29 0 0.237 C:T
22 rs17817896 32686160 0.407 0.362 0.6159 98.9 29 0 0.237 T:A
66 rs17236946 32717247 0.492 0.453 0.7762 98.9 29 0 0.347 T:C
Which isn't exactly what I want. The last three lines should be in the beginning. Is there any other dataframe method or an overcome to this?