pandas.DataFrame.convert_objects¶
- DataFrame.convert_objects(convert_dates=True, convert_numeric=False)¶
Attempt to infer better dtype for object columns Always returns a copy (even if no object columns)
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
converted : DataFrame