def __sizeof__(self) -> int:
    '\n        Generates the total memory usage for an object that returns\n        either a value or Series of values\n        '
    memory_usage = getattr(self, 'memory_usage', None)
    if memory_usage:
        mem = memory_usage(deep=True)
        return int((mem if is_scalar(mem) else mem.sum()))
    return super().__sizeof__()
Generates the total memory usage for an object that returns
either a value or Series of values
def __sizeof__(self) -> int:
    '\n        Generates the total memory usage for an object that returns\n        either a value or Series of values\n        '
    memory_usage = getattr(self, 'memory_usage', None)
    if memory_usage:
        mem = memory_usage(deep=True)
        return int((mem if is_scalar(mem) else mem.sum()))
    return super().__sizeof__()