From e8f6e6b78560752979a58cd7011ea635cd15b103 Mon Sep 17 00:00:00 2001 From: shriyakalakata Date: Thu, 25 Apr 2024 15:04:28 -0400 Subject: [PATCH 1/2] Fix RT03 errors --- ci/code_checks.sh | 3 --- pandas/core/frame.py | 3 +++ pandas/core/generic.py | 1 + pandas/plotting/_core.py | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bf7423dfe5825..2bb67c9c880aa 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -81,8 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.CategoricalIndex.ordered SA01" \ -i "pandas.DataFrame.__dataframe__ SA01" \ -i "pandas.DataFrame.at_time PR01" \ - -i "pandas.DataFrame.hist RT03" \ - -i "pandas.DataFrame.infer_objects RT03" \ -i "pandas.DataFrame.kurt RT03,SA01" \ -i "pandas.DataFrame.kurtosis RT03,SA01" \ -i "pandas.DataFrame.max RT03" \ @@ -100,7 +98,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.sum RT03" \ -i "pandas.DataFrame.swaplevel SA01" \ -i "pandas.DataFrame.to_markdown SA01" \ - -i "pandas.DataFrame.to_parquet RT03" \ -i "pandas.DataFrame.var PR01,RT03,SA01" \ -i "pandas.DatetimeIndex.freqstr SA01" \ -i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \ diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e8a0e37b70145..6c60a0200608a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2876,6 +2876,9 @@ def to_parquet( Returns ------- bytes if no path argument is provided else None + Returns the DataFrame converted to the binary parquet format as bytes if no + path argument. Returns None and writes the DataFrame to the specified + location in the Parquet format if the path argument is provided. See Also -------- diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a7f155ec93524..121f49cb7d1cf 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6579,6 +6579,7 @@ def infer_objects(self, copy: bool | lib.NoDefault = lib.no_default) -> Self: Returns ------- same type as input object + Returns an object of the same type as the input object. See Also -------- diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 60bb45d3ac1dc..ea5daf02b7252 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -233,6 +233,7 @@ def hist_frame( Returns ------- matplotlib.Axes or numpy.ndarray of them + Returns a AxesSubplot object a numpy array of AxesSubplot objects. See Also -------- From 7eb72ca85845900b8ce4efef4d1f17d1dbf88254 Mon Sep 17 00:00:00 2001 From: shriyakalakata Date: Thu, 25 Apr 2024 15:27:58 -0400 Subject: [PATCH 2/2] Fix RT03 errors --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2bb67c9c880aa..59f5dd1c26c29 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -281,7 +281,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.ge PR07,SA01" \ -i "pandas.Series.gt PR07,SA01" \ -i "pandas.Series.hasnans SA01" \ - -i "pandas.Series.infer_objects RT03" \ -i "pandas.Series.is_monotonic_decreasing SA01" \ -i "pandas.Series.is_monotonic_increasing SA01" \ -i "pandas.Series.is_unique SA01" \