pandas.api.types.pandas_dtypeΒΆ

pandas.api.types.pandas_dtype(dtype)[source]ΒΆ

Convert input into a pandas only dtype object or a numpy dtype object.

Parameters
dtypeobject to be converted
Returns
np.dtype or a pandas dtype
Raises
TypeError if not a dtype