Examples
import numpy as np
import pandas as pd
s = pd.Series(range(4))
s.memory_usage()
Not including the index gives the size of the rest of the data, which is necessarily smaller:
s.memory_usage(index=False)
The memory footprint of object values is ignored by default:
s = pd.Series(["x", "y"])
s.values
s.memory_usage()
s.memory_usage(deep=True)