Return the memory usage of the Series.
The memory usage can optionally include the contribution of
the index and of elements of object dtype.
Specifies whether to include the memory usage of the Series index.
If True, introspect the data deeply by interrogating
object dtypes for system-level memory consumption, and include
it in the returned value.
Bytes of memory consumed.
Total bytes consumed by the elements of the array.
Bytes consumed by a DataFrame.
>>> s = pd.Series(range(3))
Not including the index gives the size of the rest of the data, which
is necessarily smaller:
The memory footprint of object values is ignored by default:
>>> s = pd.Series(["a", "b"])
array(['a', 'b'], dtype=object)