File tree 5 files changed +13
-15
lines changed
5 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
73
73
$BASE_DIR /scripts/validate_docstrings.py --format=actions --errors=EX03 --ignore_functions \
74
74
pandas.Series.plot.line \
75
75
pandas.Series.to_sql \
76
- pandas.Series.to_latex \
77
76
pandas.errors.DatabaseError \
78
77
pandas.errors.IndexingError \
79
78
pandas.errors.InvalidColumnName \
@@ -87,16 +86,13 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
87
86
pandas.Timestamp.ceil \
88
87
pandas.Timestamp.floor \
89
88
pandas.Timestamp.round \
90
- pandas.read_pickle \
91
89
pandas.ExcelWriter \
92
90
pandas.read_json \
93
91
pandas.io.json.build_table_schema \
94
- pandas.DataFrame.to_latex \
95
92
pandas.io.formats.style.Styler.to_latex \
96
93
pandas.read_parquet \
97
94
pandas.DataFrame.to_sql \
98
95
pandas.read_stata \
99
- pandas.core.resample.Resampler.pipe \
100
96
pandas.core.resample.Resampler.interpolate \
101
97
pandas.plotting.scatter_matrix \
102
98
pandas.pivot \
Original file line number Diff line number Diff line change @@ -3544,7 +3544,7 @@ def to_latex(
3544
3544
>>> print(df.to_latex(index=False,
3545
3545
... formatters={"name": str.upper},
3546
3546
... float_format="{:.1f}".format,
3547
- ... )) # doctest: +SKIP
3547
+ ... )) # doctest: +SKIP
3548
3548
\begin{tabular}{lrr}
3549
3549
\toprule
3550
3550
name & age & height \\
Original file line number Diff line number Diff line change @@ -444,14 +444,15 @@ class providing the base-class of operations.
444
444
a `(callable, data_keyword)` tuple where `data_keyword` is a
445
445
string indicating the keyword of `callable` that expects the
446
446
%(klass)s object.
447
- args : iterable, optional
447
+ * args : iterable, optional
448
448
Positional arguments passed into `func`.
449
- kwargs : dict, optional
449
+ ** kwargs : dict, optional
450
450
A dictionary of keyword arguments passed into `func`.
451
451
452
452
Returns
453
453
-------
454
- the return type of `func`.
454
+ %(klass)s
455
+ The original object with the function `func` applied.
455
456
456
457
See Also
457
458
--------
Original file line number Diff line number Diff line change @@ -770,7 +770,7 @@ def to_latex(
770
770
771
771
For example the following code will highlight and bold a cell in HTML-CSS:
772
772
773
- >>> df = pd.DataFrame([[1,2], [3,4]])
773
+ >>> df = pd.DataFrame([[1, 2], [3, 4]])
774
774
>>> s = df.style.highlight_max(axis=None,
775
775
... props='background-color:red; font-weight:bold;')
776
776
>>> s.to_html() # doctest: +SKIP
@@ -893,9 +893,9 @@ def to_latex(
893
893
>>> s.table_styles = []
894
894
>>> s.caption = None
895
895
>>> s.format({
896
- ... ("Numeric", "Integers"): '\${}',
897
- ... ("Numeric", "Floats"): '{:.3f}',
898
- ... ("Non-Numeric", "Strings"): str.upper
896
+ ... ("Numeric", "Integers"): '\ \${}',
897
+ ... ("Numeric", "Floats"): '{:.3f}',
898
+ ... ("Non-Numeric", "Strings"): str.upper
899
899
... }) # doctest: +SKIP
900
900
Numeric Non-Numeric
901
901
Integers Floats Strings
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def read_pickle(
121
121
storage_options : StorageOptions | None = None ,
122
122
) -> DataFrame | Series :
123
123
"""
124
- Load pickled pandas object (or any object) from file.
124
+ Load pickled pandas object (or any object) from file and return unpickled object .
125
125
126
126
.. warning::
127
127
@@ -143,7 +143,8 @@ def read_pickle(
143
143
144
144
Returns
145
145
-------
146
- same type as object stored in file
146
+ object
147
+ The unpickled pandas object (or any object) that was stored in file.
147
148
148
149
See Also
149
150
--------
@@ -162,7 +163,7 @@ def read_pickle(
162
163
--------
163
164
>>> original_df = pd.DataFrame(
164
165
... {{"foo": range(5), "bar": range(5, 10)}}
165
- ... ) # doctest: +SKIP
166
+ ... ) # doctest: +SKIP
166
167
>>> original_df # doctest: +SKIP
167
168
foo bar
168
169
0 0 5
You can’t perform that action at this time.
0 commit comments