{"task": {"agent_timeout": 3000, "task": "pandas-dev__pandas-48854", "verifier_timeout": 6000, "instruction": "BUG: `pd.to_timedelta()` does not accept nullable float\n### Pandas version checks\n\n- [X] I have checked that this issue has not already been reported.\n\n- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.\n\n- [ ] I have confirmed this bug exists on the main branch of pandas.\n\n\n### Reproducible Example\n\n```python\nimport pandas as pd\npd.to_timedelta(pd.Series([1], dtype=\"Float64\"))\n```\n\n\n### Issue Description\n\nThe `pd.to_timedelta()` function does not accept a series using the nullable float extension dtype (either \"Float32\" or \"Float64\").\n\nAn exception is raised with the following message:\n> IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices\n\n### Expected Behavior\n\nIn this example, I would expect the output to be the same as for the regular NumPy dtype:\n\n```python\npd.to_timedelta(pd.Series([1], dtype=\"float64\"))\n```\n\n### Installed Versions\n\n<details>\n\nINSTALLED VERSIONS\n------------------\ncommit           : 87cfe4e38bafe7300a6003a1d18bd80f3f77c763\npython           : 3.9.7.final.0\npython-bits      : 64\nOS               : Windows\nOS-release       : 10\nVersion          : 10.0.19044\nmachine          : AMD64\nprocessor        : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel\nbyteorder        : little\nLC_ALL           : None\nLANG             : None\nLOCALE           : English_United States.1252\n\npandas           : 1.5.0\nnumpy            : 1.21.5\npytz             : 2022.1\ndateutil         : 2.8.2\nsetuptools       : 63.4.1\npip              : 22.1.2\nCython           : 0.29.30\npytest           : 7.1.2\nhypothesis       : None\nsphinx           : 5.0.2\nblosc            : None\nfeather          : None\nxlsxwriter       : 3.0.3\nlxml.etree       : 4.9.1\nhtml5lib         : None\npymysql          : None\npsycopg2         : None\njinja2           : 2.11.3\nIPython          : 8.4.0\npandas_datareader: None\nbs4              : 4.11.1\nbottleneck       : 1.3.5\nbrotli           : \nfastparquet      : None\nfsspec           : 2022.7.1\ngcsfs            : None\nmatplotlib       : 3.5.2\nnumba            : 0.55.1\nnumexpr          : 2.8.3\nodfpy            : None\nopenpyxl         : 3.0.10\npandas_gbq       : None\npyarrow          : None\npyreadstat       : None\npyxlsb           : None\ns3fs             : None\nscipy            : 1.7.1\nsnappy           : \nsqlalchemy       : 1.4.39\ntables           : 3.6.1\ntabulate         : 0.8.10\nxarray           : 0.20.1\nxlrd             : 2.0.1\nxlwt             : None\nzstandard        : None\ntzdata           : None\n\n</details>\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": 1, "instruction_truncated": false, "category": "debugging", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "swegym", "tags": ["debugging", "swe-bench"]}, "runs": []}