I need to change if a number in column is -after numbers

Ah okay so your numbers are floats instead of ints. Try replacing int with float in the above code, to cast the strings to floats