I have the following column in a DF. How could I convert this column into a float(13,5) with 5 decimals.String length is always 18 characters. As a workaround , I have used string split function and joined return values.
df=pd.DataFrame(['+00000030454360000','-00000030734250000','-00000004643685000'],columns=['qty'])
print df.qty.str[:13]+'.'+df.qty.str[13:]
Expected Output
0
0 +304543.6
1 -307342.5
2 -46436.85
float(13,5), but in the desired data set you have strings. So do you need modified strings or floats?