pandas.DataFrame.memory_usage — pandas 0.18.1 documentation (original) (raw)

DataFrame.memory_usage(index=True, deep=False)

Memory usage of DataFrame columns.

Parameters: index : bool Specifies whether to include memory usage of DataFrame’s index in returned Series. If index=True (default is False) the first index of the Series is Index. deep : bool Introspect the data deeply, interrogateobject dtypes for system-level memory consumption
Returns: sizes : Series A series with column names as index and memory usage of columns with units of bytes.

Notes

Memory usage does not include memory consumed by elements that are not components of the array if deep=False