From 1e9e3797ecdb1e0b4a66594608a64fc0396657cd Mon Sep 17 00:00:00 2001 From: Peter Leimbigler Date: Mon, 18 Mar 2019 00:42:57 -0400 Subject: [PATCH 1/2] Fix typo in docstring of DataFrame.memory_usage (#25761) --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 99e5950f06382..ee029766a6bb6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2468,8 +2468,8 @@ def memory_usage(self, index=True, deep=False): ---------- 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 the first item in the output. + index in returned Series. If ``index=True``, the memory usage of + the index is the first item in the output. deep : bool, default False If True, introspect the data deeply by interrogating `object` dtypes for system-level memory consumption, and include From 356087b5e40befeb4cb1a24dc2f6387d58297efb Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 18 Mar 2019 17:03:46 -0700 Subject: [PATCH 2/2] Removed trailing whitespace --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ee029766a6bb6..b75680a2b48ef 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2468,7 +2468,7 @@ def memory_usage(self, index=True, deep=False): ---------- 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 + index in returned Series. If ``index=True``, the memory usage of the index is the first item in the output. deep : bool, default False If True, introspect the data deeply by interrogating