Skip to content

Commit ac510f9

Browse files
committed
GH27976 : fix unknown parameter issues in pandas.io.formats.style file
- replace kwargs with **kwargs in apply method in Styler class - replace kwargs with **kwargs in applymap method in Styler class - replace kwargs with **kwargs in where method in Styler class - separate low and high parameters onto different lines and provide invidivual descriptions for both - replace kwargs with **kwargs in set_properties method in Styler class - separate args and kwargs parameters onto different lines and provide invidivual descriptions for both
1 parent 598b8d7 commit ac510f9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

pandas/io/formats/style.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def apply(self, func, axis=0, subset=None, **kwargs):
645645
subset : IndexSlice
646646
a valid indexer to limit ``data`` to *before* applying the
647647
function. Consider using a pandas.IndexSlice
648-
kwargs : dict
648+
**kwargs : dict
649649
pass along to ``func``
650650
651651
Returns
@@ -697,7 +697,7 @@ def applymap(self, func, subset=None, **kwargs):
697697
subset : IndexSlice
698698
a valid indexer to limit ``data`` to *before* applying the
699699
function. Consider using a pandas.IndexSlice
700-
kwargs : dict
700+
**kwargs : dict
701701
pass along to ``func``
702702
703703
Returns
@@ -732,7 +732,7 @@ def where(self, cond, value, other=None, subset=None, **kwargs):
732732
subset : IndexSlice
733733
a valid indexer to limit ``data`` to *before* applying the
734734
function. Consider using a pandas.IndexSlice
735-
kwargs : dict
735+
**kwargs : dict
736736
pass along to ``cond``
737737
738738
Returns
@@ -965,8 +965,10 @@ def background_gradient(
965965
----------
966966
cmap : str or colormap
967967
matplotlib colormap
968-
low, high : float
969-
compress the range by these values.
968+
low : float
969+
compress the range by the low.
970+
high : float
971+
compress the range by the high.
970972
axis : {0 or 'index', 1 or 'columns', None}, default 0
971973
apply to each column (``axis=0`` or ``'index'``), to each row
972974
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
@@ -1078,7 +1080,7 @@ def set_properties(self, subset=None, **kwargs):
10781080
----------
10791081
subset : IndexSlice
10801082
a valid slice for ``data`` to limit the style application to
1081-
kwargs : dict
1083+
**kwargs : dict
10821084
property: value pairs to be set for each cell
10831085
10841086
Returns
@@ -1350,8 +1352,11 @@ def pipe(self, func, *args, **kwargs):
13501352
Function to apply to the Styler. Alternatively, a
13511353
``(callable, keyword)`` tuple where ``keyword`` is a string
13521354
indicating the keyword of ``callable`` that expects the Styler.
1353-
*args, **kwargs :
1355+
*args : optional
13541356
Arguments passed to `func`.
1357+
**kwargs : optional
1358+
A dictionary of keyword arguments passed into ``func``.
1359+
13551360
13561361
Returns
13571362
-------

0 commit comments

Comments
 (0)