pandas.Panel.astype

Panel.astype(dtype, copy=True, raise_on_error=True)

Cast object to input numpy.dtype Return a copy when copy = True (be really careful with this!)

Parameters :

dtype : numpy.dtype or Python type

raise_on_error : raise on invalid input

Returns :

casted : type of caller