From 145a37edc83c522a79f4fc103853a435604d099e Mon Sep 17 00:00:00 2001 From: Godwill Agbehonou Date: Tue, 18 Jul 2023 13:19:38 -0400 Subject: [PATCH 1/4] Update frame.py Changed the description of value_counts function --- 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 a469f4965117b..795d5228de5ac 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6983,7 +6983,7 @@ def value_counts( dropna: bool = True, ) -> Series: """ - Return a Series containing counts of unique rows in the DataFrame. + Return a Series containing the number of times each unique row occurs in the DataFrame. Parameters ---------- From 0354e4b6bffea870cdde840878ebbdad5001491e Mon Sep 17 00:00:00 2001 From: Godwill Agbehonou Date: Tue, 18 Jul 2023 13:37:12 -0400 Subject: [PATCH 2/4] Update frame.py Fixed line too long error --- pandas/core/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 795d5228de5ac..057374de5e69c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6983,7 +6983,8 @@ def value_counts( dropna: bool = True, ) -> Series: """ - Return a Series containing the number of times each unique row occurs in the DataFrame. + Return a Series containing the number of times each unique row occurs in + the DataFrame. Parameters ---------- From 67b58cfe4e3bf544d6218595864f6ececbdc4206 Mon Sep 17 00:00:00 2001 From: Godwill Agbehonou Date: Tue, 18 Jul 2023 15:27:54 -0400 Subject: [PATCH 3/4] Adjusted value_counts summary --- 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 057374de5e69c..f6c87e5dbaebb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6983,8 +6983,8 @@ def value_counts( dropna: bool = True, ) -> Series: """ - Return a Series containing the number of times each unique row occurs in - the DataFrame. + Return a Series containing the number of times each unique row occurs + in the DataFrame. Parameters ---------- From 90362096d7dddf143ca8cc716bf357bae3e671f8 Mon Sep 17 00:00:00 2001 From: Godwill Agbehonou Date: Thu, 20 Jul 2023 14:29:13 -0400 Subject: [PATCH 4/4] Fixed description on one line issue --- pandas/core/frame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f6c87e5dbaebb..b3ee6f92257a2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6983,8 +6983,7 @@ def value_counts( dropna: bool = True, ) -> Series: """ - Return a Series containing the number of times each unique row occurs - in the DataFrame. + Return a Series containing the frequency of each distinct row in the Dataframe. Parameters ----------