pandas.Panel4D.convert_objects

Panel4D.convert_objects(convert_dates=True, convert_numeric=False, convert_timedeltas=True, 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 numbers (including

strings), non-convertibles get NaN

convert_timedeltas : if True, attempt to soft convert timedeltas, if ‘coerce’,

force conversion (and non-convertibles get NaT)

copy : Boolean, if True, return copy even if no copy is necessary

(e.g. no conversion was done), default is True. It is meant for internal use, not to be confused with inplace kw.

Returns:

converted : asm as input object