I am trying to convert string to float in a dataset. The dataset consists of several columns where one of the columns contains entries:
col1 | col2 |
---|---|
x | [1.1, 1.2, 1.3 ... |
When I use pd.to_numeric
I get the following error:
Unable to parse string "[1.1, 1.2........]" at position 0.
**This is a simplified version of my code, where the numbers resemble this 2.1874960973678963