TSRdfr["Return"] = pd.to_numeric(TSRdfr.Return, errors='coerce')
This is not converting the data type of Return from Object to float64. I tried removing errors ='coerce' to see what's happening.
I am getting an error saying:
Unable to parse NaN at position 0
when I dont use errors = 'coerce'.
The Return numbers are accessed from Refinitiv Eikon API. I am assuming they are too large to convert to float64. Any suggestions??
Try the following:
Hope that helps