From d2e9dab1fa5743470bce69456ac891cb90e7383c Mon Sep 17 00:00:00 2001 From: Peter Leimbigler Date: Sun, 17 Mar 2019 23:27:24 -0400 Subject: [PATCH 1/2] Fix typo in docstring of DataFrame.memory_usage --- 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 f5535096c967d..4b3812f31ad87 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2522,8 +2522,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 c4e48f09b86e9359b2ee75149a45d03b68eef6fc Mon Sep 17 00:00:00 2001 From: Peter Leimbigler Date: Sun, 17 Mar 2019 23:55:46 -0400 Subject: [PATCH 2/2] Fix PEP8 line length violation Rewrap line 2525 of frame.py (the docstring of `DataFrame.memory_usage`) to conform with PEP8 line length. --- 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 4b3812f31ad87..fb40c08aeb28a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2522,8 +2522,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 is 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