To address your question, you can make the following changes in the code:
ans = df.iloc[:,0].str.extract(r'^(.?)\s(\d.?\d*)?$') # '\d+.\d+'
ans[1]
Please refer to the image below for additional clarification.
https://i.sstatic.net/Qs9JGpfn.png