cudf.Series.memory_usage#
- Series.memory_usage(index: bool = True, deep: bool = False) int [source]#
Return the memory usage of the Series.
- Parameters:
- indexbool, default True
Specifies whether to include the memory usage of the index.
- deepbool, default False
The deep parameter is ignored and is only included for pandas compatibility.
- Returns:
- int
The total memory usage in bytes.
Examples
>>> import cudf >>> s = cudf.Series(range(3), index=['a','b','c']) >>> s.memory_usage() 43
Not including the index gives the size of the rest of the data, which is necessarily smaller:
>>> s.memory_usage(index=False) 24