Use "1.0000000000000000E-02"
not '"1.0000000000000000E-02"'
.
In your case you were storing a string with "
as a character. Clearly "
has no integer representation and thus you received an error from the python interpreter.
It is difficult to comment what the error might be without seeing the csv but most probably you would have written these numbers as "1.000E-12"
in the csv and reading them as str makes them '"1.000E-12"'
treating "
as a character. You can do df['frequency'].apply(lambda x:x[1:-1])
to remove "
.
Alternatively pandas.read_csv(data, quotechar='"')
can be used too.
Stackoverflow post
Alternatively pandas.read_csv(data, doublequote=True)
can be used too
See the docs Read Csv Docs
>>> s ="1.0000000000000000E-02"
>>> float(s)
0.01
>>> s ='"1.0000000000000000E-02"'
>>> float(s)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: '"1.0000000000000000E-02"'