I have a number '24.45-'
and wanted to move the minus sign from right to left like '-24.45'
in Python.I am dealing with huge data in data frame and trying to do this using regex so that I can apply on the whole column. Tried this but with no luck, any suggestions please.
print(re.sub(r"([0-9.]+)((\W$))","\2\1","24.45-"))