From 8819247ee797a044b2a15e03be60943dc4787f94 Mon Sep 17 00:00:00 2001 From: joshuabello2550 <43732414+joshuabello2550@users.noreply.github.com> Date: Thu, 18 Aug 2022 08:43:06 -0700 Subject: [PATCH] Fixed docstring error with style.py, unknown parameter: {'text_color_threshold'} (#48055) * fixed docstring error with style.py unknown paramter 'text_color_threshold' * Fixed docstring error with style.py, unknown parameter: text_color_threshold * Update style.py reverted unneeded changes * Update style.py Revert unneeded changes --- pandas/io/formats/style.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 8444efb7cb636..a2a9079642344 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2986,7 +2986,10 @@ def _get_numeric_subset_default(self): name="background", alt="text", image_prefix="bg", - text_threshold="", + text_threshold="""text_color_threshold : float or int\n + Luminance threshold for determining text color in [0, 1]. Facilitates text\n + visibility across varying background colors. All text is dark if 0, and\n + light if 1, defaults to 0.408.""", ) @Substitution(subset=subset) def background_gradient( @@ -3025,11 +3028,7 @@ def background_gradient( (``axis=1`` or ``'columns'``), or to the entire DataFrame at once with ``axis=None``. %(subset)s - text_color_threshold : float or int - {text_threshold} - Luminance threshold for determining text color in [0, 1]. Facilitates text - visibility across varying background colors. All text is dark if 0, and - light if 1, defaults to 0.408. + {text_threshold} vmin : float, optional Minimum data value that corresponds to colormap minimum value. If not specified the minimum value of the data (or gmap) will be used. @@ -3146,7 +3145,7 @@ def background_gradient( name="text", alt="background", image_prefix="tg", - text_threshold="This argument is ignored (only used in `background_gradient`).", + text_threshold="", ) def text_gradient( self,