Convert data type of columns in DataFrame -- Object to float64
Post date: Aug 8, 2014 4:45:03 PM
Here is how:
## Originally, the type of df.raw_odr_rate is Object
df.raw_odr_rate.dtype
## And we want to convert it to numeric, more specifically float64
df.raw_odr_rate = df.raw_odr_rate.convert_objects(convert_numeric=True)
more details:
http://stackoverflow.com/questions/17778139/pandas-unable-to-change-column-data-type?lq=1