pandas.DataFrame.convert_objects

DataFrame.convert_objects(convert_dates=True, convert_numeric=False, copy=True)

Attempt to infer better dtype for object columns

Parameters :

convert_dates : if True, attempt to soft convert_dates, if ‘coerce’, force conversion (and non-convertibles get NaT)

convert_numeric : if True attempt to coerce to numerbers (including strings), non-convertibles get NaN

copy : boolean, return a copy if True (True by default)

Returns :

converted : DataFrame