def memory_usage(self, deep=False):
        return self._codes.nbytes + self._categories.memory_usage(deep=deep)
Scalar with unit conversion, complex support.
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.memory_usage--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/vec_wrapper.py/Accessor._get_scalar_units_complex