From c0ff74668999229cc978500bdd61d2d16938b74c Mon Sep 17 00:00:00 2001 From: ammar-qazi Date: Thu, 5 Sep 2024 21:28:47 +0200 Subject: [PATCH] Update frames.py to factor in explain columns reordering --- pandas/core/frame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f47acf579d79c..e3ef6dd6f810c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2124,9 +2124,10 @@ def from_records( columns : sequence, default None Column names to use. If the passed data do not have names associated with them, this argument provides names for the - columns. Otherwise this argument indicates the order of the columns + 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) and limits the data to these columns if not all column names + are provided. 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.