From 3880c0b5377522a420b4c2ff27673587d9243d20 Mon Sep 17 00:00:00 2001 From: Yashpal Ahlawat Date: Tue, 27 Feb 2024 23:37:53 +0530 Subject: [PATCH 1/2] DOC: RT03 fix for read_sql_query, read_feather --- ci/code_checks.sh | 2 -- pandas/io/feather_format.py | 2 ++ pandas/io/sql.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 322942acb429c..c6e8ac43fdc8c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -878,11 +878,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.plotting.parallel_coordinates\ pandas.plotting.radviz\ pandas.plotting.table\ - pandas.read_feather\ pandas.read_orc\ pandas.read_sas\ pandas.read_spss\ - pandas.read_sql_query\ pandas.read_stata\ pandas.set_eng_float_format\ pandas.timedelta_range\ diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index d0aaf83b84cb2..898479e3f55c2 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -104,6 +104,8 @@ def read_feather( Returns ------- type of object stored in file + The object stored in the file can be either an instance of the + DataFrame class or a pyarrow ArrowDtype object. Examples -------- diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 7764a810bbda6..c0d69472598f1 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -460,6 +460,8 @@ def read_sql_query( Returns ------- DataFrame or Iterator[DataFrame] + Returns a DataFrame object that contains the result set of the + executed SQL query, in relation to the specified database connection. See Also -------- From d524370f89286d0247475b6875fee178a8ca9634 Mon Sep 17 00:00:00 2001 From: Yashpal Ahlawat Date: Wed, 28 Feb 2024 10:44:46 +0530 Subject: [PATCH 2/2] Update pandas/io/feather_format.py Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --- pandas/io/feather_format.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/io/feather_format.py b/pandas/io/feather_format.py index 898479e3f55c2..89cb044511a25 100644 --- a/pandas/io/feather_format.py +++ b/pandas/io/feather_format.py @@ -104,8 +104,7 @@ def read_feather( Returns ------- type of object stored in file - The object stored in the file can be either an instance of the - DataFrame class or a pyarrow ArrowDtype object. + DataFrame object stored in the file. Examples --------