I have the following code,
import pandas as pd
a = ['...', 1]
pd.to_numeric(a, errors = 'coerce', downcast = 'integer')
I expected the output to be,
array([nan,1], dtype = int8)
Instead, I got
array([nan,1.], dtype = float32)
What should I do to get a list of integers? Why does it return float values?