@cache_readonly
    def ndim(self):
        return self._codes.ndim
Performs a terms aggregation for each field to get every existing term.
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.ndim--crossover with--dataset/ETHPy150Open Yelp/elastalert/elastalert/ruletypes.py/NewTermsRule.get_all_terms