diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bf7423dfe5825..59f5dd1c26c29 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" \ @@ -284,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" \ 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 --------