From e883b3ba2d30180c0ea4db835d3a629ee7006b2b Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 16 Oct 2017 11:11:52 +0200 Subject: [PATCH] CategoricalDtype construction: actually use fastpath --- pandas/core/dtypes/dtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 2fdbad93fa63b..b3498abb3b2c0 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -178,7 +178,7 @@ def _finalize(self, categories, ordered, fastpath=False): if categories is not None: categories = Index(categories, tupleize_cols=False) # validation - self._validate_categories(categories) + self._validate_categories(categories, fastpath=fastpath) self._validate_ordered(ordered) self._categories = categories self._ordered = ordered