How do I convert the character values to numeric in a data frame in Python Solution to_numeric function in pandas package can be used for the above purpose. It converts argument to numeric type. argument can be array or list or tuple or series. import pandas as abc s = abc.Series([\'6.0\', \'5\']) abc.to_numeric(s).