79157959

Date: 2024-11-05 07:05:08
Score: 2.5
Natty:
Report link

To address your question, you can make the following changes in the code:

  1. Assign your extracted values in one variable

ans = df.iloc[:,0].str.extract(r'^(.?)\s(\d.?\d*)?$') # '\d+.\d+'

  1. Access only first index only

ans[1]

Please refer to the image below for additional clarification.

https://i.sstatic.net/Qs9JGpfn.png

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jinal Desai