def __sizeof__(self):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>mem = self.memory_usage(deep=True)<EOL>if not is_scalar(mem):<EOL><INDENT>mem = mem.sum()<EOL><DEDENT>return int(mem)<EOL><DEDENT>return super().__sizeof__()<EOL>
Generates the total memory usage for an object that returns
either a value or Series of values