DataFrame.memory_usage()

pandas.DataFrame.memory_usage

DataFrame.memory_usage(index=True, deep=False) [source]

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, interrogate object登录查看完整内容