def is_categorical_astype(self, dtype):
if dtype is Categorical or dtype is CategoricalDtype:<EOL><INDENT>raise TypeError("<STR_LIT>".format(dtype))<EOL><DEDENT>elif is_categorical_dtype(dtype):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
validate that we have a astypeable to categorical,
returns a boolean if we are a categorical