Skip to content

Commit 926a9c3

Browse files
DOC: Fix RT03 errors for DataFrame.infer_objects, DataFrame.hist, DataFrame.to_parquet (#58429)
* Fix RT03 errors * Fix RT03 errors
1 parent cbbe3a2 commit 926a9c3

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8181
-i "pandas.CategoricalIndex.ordered SA01" \
8282
-i "pandas.DataFrame.__dataframe__ SA01" \
8383
-i "pandas.DataFrame.at_time PR01" \
84-
-i "pandas.DataFrame.hist RT03" \
85-
-i "pandas.DataFrame.infer_objects RT03" \
8684
-i "pandas.DataFrame.kurt RT03,SA01" \
8785
-i "pandas.DataFrame.kurtosis RT03,SA01" \
8886
-i "pandas.DataFrame.max RT03" \
@@ -99,7 +97,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9997
-i "pandas.DataFrame.sum RT03" \
10098
-i "pandas.DataFrame.swaplevel SA01" \
10199
-i "pandas.DataFrame.to_markdown SA01" \
102-
-i "pandas.DataFrame.to_parquet RT03" \
103100
-i "pandas.DataFrame.var PR01,RT03,SA01" \
104101
-i "pandas.DatetimeIndex.freqstr SA01" \
105102
-i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \
@@ -280,7 +277,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
280277
-i "pandas.Series.ge PR07,SA01" \
281278
-i "pandas.Series.gt PR07,SA01" \
282279
-i "pandas.Series.hasnans SA01" \
283-
-i "pandas.Series.infer_objects RT03" \
284280
-i "pandas.Series.is_monotonic_decreasing SA01" \
285281
-i "pandas.Series.is_monotonic_increasing SA01" \
286282
-i "pandas.Series.is_unique SA01" \

pandas/core/frame.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,6 +2876,9 @@ def to_parquet(
28762876
Returns
28772877
-------
28782878
bytes if no path argument is provided else None
2879+
Returns the DataFrame converted to the binary parquet format as bytes if no
2880+
path argument. Returns None and writes the DataFrame to the specified
2881+
location in the Parquet format if the path argument is provided.
28792882
28802883
See Also
28812884
--------

pandas/core/generic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6579,6 +6579,7 @@ def infer_objects(self, copy: bool | lib.NoDefault = lib.no_default) -> Self:
65796579
Returns
65806580
-------
65816581
same type as input object
6582+
Returns an object of the same type as the input object.
65826583
65836584
See Also
65846585
--------

pandas/plotting/_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def hist_frame(
233233
Returns
234234
-------
235235
matplotlib.Axes or numpy.ndarray of them
236+
Returns a AxesSubplot object a numpy array of AxesSubplot objects.
236237
237238
See Also
238239
--------

0 commit comments

Comments
 (0)