From d7a8e1b8686024b3c891d01ce267ccbfd1beabb9 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 2 Oct 2018 10:57:56 -0500 Subject: [PATCH] Fixed --- pandas/core/dtypes/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index cfa25d04a3201..7c91e62cc9876 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -9,7 +9,7 @@ from pandas.core.dtypes.dtypes import ( registry, CategoricalDtype, CategoricalDtypeType, DatetimeTZDtype, - DatetimeTZDtypeType, PeriodDtype, IntervalDtype, + PeriodDtype, IntervalDtype, PandasExtensionDtype, ExtensionDtype, _pandas_registry) from pandas.core.dtypes.generic import ( @@ -1906,7 +1906,7 @@ def _get_dtype_type(arr_or_dtype): elif isinstance(arr_or_dtype, CategoricalDtype): return CategoricalDtypeType elif isinstance(arr_or_dtype, DatetimeTZDtype): - return DatetimeTZDtypeType + return Timestamp elif isinstance(arr_or_dtype, IntervalDtype): return Interval elif isinstance(arr_or_dtype, PeriodDtype): @@ -1915,7 +1915,7 @@ def _get_dtype_type(arr_or_dtype): if is_categorical_dtype(arr_or_dtype): return CategoricalDtypeType elif is_datetime64tz_dtype(arr_or_dtype): - return Timestmap + return Timestamp elif is_period_dtype(arr_or_dtype): return Period elif is_interval_dtype(arr_or_dtype):