From 9b4351c4ae5346c9e05c29dcf4e69b54fd4d5f15 Mon Sep 17 00:00:00 2001 From: StaticAceess Date: Thu, 5 Sep 2024 01:41:22 +0530 Subject: [PATCH 1/2] fixed issue#59670. DOC --- 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 f47acf579d79c..fbd0cbda2de9f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2126,7 +2126,8 @@ def from_records( associated with them, this argument provides names for the columns. Otherwise this argument indicates the order of the columns in the result (any names not found in the data will become all-NA - columns). + columns).Additionally,specifying `columns` will limit the DataFrame to only include the + specified columns, similar to an "include" or "usecols" functionality. coerce_float : bool, default False Attempt to convert values of non-string, non-numeric objects (like decimal.Decimal) to floating point, useful for SQL result sets. From 7e856e1d4a91ad4cba1ba42e97d16734a2ff5065 Mon Sep 17 00:00:00 2001 From: StaticAceess Date: Thu, 5 Sep 2024 02:03:22 +0530 Subject: [PATCH 2/2] fixed issue#59670.Adding information on doc --- 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 fbd0cbda2de9f..91c10cad70ef0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2126,8 +2126,8 @@ def from_records( associated with them, this argument provides names for the columns. Otherwise this argument indicates the order of the columns in the result (any names not found in the data will become all-NA - columns).Additionally,specifying `columns` will limit the DataFrame to only include the - specified columns, similar to an "include" or "usecols" functionality. + columns).Additionally,specifying `columns` will limit the DataFrame to only + include the specified columns, similar to an "include" or "usecols" functionality. coerce_float : bool, default False Attempt to convert values of non-string, non-numeric objects (like decimal.Decimal) to floating point, useful for SQL result sets.