bigframes.pandas.DataFrame.memory_usage#

DataFrame.memory_usage(index: bool = True)[source]#

Return the memory usage of each column in bytes.

The memory usage can optionally include the contribution of the index and elements of object dtype.

This value is displayed in DataFrame.info by default. This can be suppressed by setting pandas.options.display.memory_usage to False.

Parameters:

index (bool, default True) – Specifies whether to include the memory usage of the DataFrame’s index in returned Series. If index=True, the memory usage of the index is the first item in the output.

Returns:

A Series whose index is the original column names and whose values is the memory usage of each column in bytes.

Return type:

bigframes.pandas.Series