File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
71
71
72
72
MSG=' Partially validate docstrings (PR02)' ; echo $MSG
73
73
$BASE_DIR /scripts/validate_docstrings.py --format=actions --errors=PR02 --ignore_functions \
74
- pandas.io.formats.style.Styler.to_excel\
75
74
pandas.CategoricalIndex.rename_categories\
76
75
pandas.CategoricalIndex.reorder_categories\
77
76
pandas.CategoricalIndex.add_categories\
Original file line number Diff line number Diff line change 220
220
from pandas .core .indexers .objects import BaseIndexer
221
221
from pandas .core .resample import Resampler
222
222
223
+ import textwrap
224
+
223
225
# goal is to be able to define the docs close to function, while still being
224
226
# able to share
225
227
_shared_docs = {** _shared_docs }
@@ -2240,6 +2242,12 @@ def _repr_data_resource_(self):
2240
2242
klass = "object" ,
2241
2243
storage_options = _shared_docs ["storage_options" ],
2242
2244
storage_options_versionadded = "1.2.0" ,
2245
+ extra_parameters = textwrap .dedent (
2246
+ """\
2247
+ engine_kwargs : dict, optional
2248
+ Arbitrary keyword arguments passed to excel engine.
2249
+ """
2250
+ ),
2243
2251
)
2244
2252
def to_excel (
2245
2253
self ,
@@ -2315,9 +2323,7 @@ def to_excel(
2315
2323
{storage_options}
2316
2324
2317
2325
.. versionadded:: {storage_options_versionadded}
2318
- engine_kwargs : dict, optional
2319
- Arbitrary keyword arguments passed to excel engine.
2320
-
2326
+ {extra_parameters}
2321
2327
See Also
2322
2328
--------
2323
2329
to_csv : Write DataFrame to a comma-separated values (csv) file.
Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ def set_tooltips(
516
516
klass = "Styler" ,
517
517
storage_options = _shared_docs ["storage_options" ],
518
518
storage_options_versionadded = "1.5.0" ,
519
+ extra_parameters = "" ,
519
520
)
520
521
def to_excel (
521
522
self ,
You can’t perform that action at this time.
0 commit comments