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 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

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.DataFrame.memory_usage.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部