From ed7ddb33bda768a6a632f9917583bf0051665420 Mon Sep 17 00:00:00 2001 From: U-S-jun Date: Thu, 14 Nov 2024 18:35:36 +0900 Subject: [PATCH 1/2] DOC: Update from_records docstring to comply with numpydoc style (GH#60307) --- 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 b35e2c8497fb7..99ff6e6496fba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2116,7 +2116,7 @@ def from_records( Convert structured or record ndarray to DataFrame. Creates a DataFrame object from a structured ndarray, sequence of - tuples or dicts, or DataFrame. + tuples or dicts. Parameters ---------- From cbf06a25f8aed1b43452e8be9145f8fa8560837e Mon Sep 17 00:00:00 2001 From: U-S-jun <157643778+U-S-jun@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:38:32 +0900 Subject: [PATCH 2/2] Update pandas/core/frame.py Added "or" before the last item in the enumeration for improved clarity in the from_records docstring. Co-authored-by: Joris Van den Bossche --- 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 99ff6e6496fba..34eb198b4b4da 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2115,7 +2115,7 @@ def from_records( """ Convert structured or record ndarray to DataFrame. - Creates a DataFrame object from a structured ndarray, sequence of + Creates a DataFrame object from a structured ndarray, or sequence of tuples or dicts. Parameters