@@ -105,7 +105,7 @@ def _mpl(func: Callable) -> Generator[tuple[Any, Any], None, None]:
105
105
CSS properties to use for highlighting. If ``props`` is given, ``color``
106
106
is not used."""
107
107
108
- color = """color : str, default 'yellow '
108
+ color = """color : str, default '{default} '
109
109
Background color to use for highlighting."""
110
110
111
111
buf = """buf : str, path object, file-like object, optional
@@ -3335,7 +3335,7 @@ def bar(
3335
3335
3336
3336
return self
3337
3337
3338
- @Substitution (subset = subset , props = props , color = color )
3338
+ @Substitution (subset = subset , props = props , color = color . format ( default = "red" ) )
3339
3339
def highlight_null (
3340
3340
self ,
3341
3341
color : str | None = None ,
@@ -3397,7 +3397,7 @@ def f(data: DataFrame, props: str) -> np.ndarray:
3397
3397
props = f"background-color: { color } ;"
3398
3398
return self .apply (f , axis = None , subset = subset , props = props )
3399
3399
3400
- @Substitution (subset = subset , color = color , props = props )
3400
+ @Substitution (subset = subset , color = color . format ( default = "yellow" ) , props = props )
3401
3401
def highlight_max (
3402
3402
self ,
3403
3403
subset : Subset | None = None ,
@@ -3441,7 +3441,7 @@ def highlight_max(
3441
3441
props = props ,
3442
3442
)
3443
3443
3444
- @Substitution (subset = subset , color = color , props = props )
3444
+ @Substitution (subset = subset , color = color . format ( default = "yellow" ) , props = props )
3445
3445
def highlight_min (
3446
3446
self ,
3447
3447
subset : Subset | None = None ,
@@ -3485,7 +3485,7 @@ def highlight_min(
3485
3485
props = props ,
3486
3486
)
3487
3487
3488
- @Substitution (subset = subset , color = color , props = props )
3488
+ @Substitution (subset = subset , color = color . format ( default = "yellow" ) , props = props )
3489
3489
def highlight_between (
3490
3490
self ,
3491
3491
subset : Subset | None = None ,
@@ -3589,7 +3589,7 @@ def highlight_between(
3589
3589
inclusive = inclusive ,
3590
3590
)
3591
3591
3592
- @Substitution (subset = subset , color = color , props = props )
3592
+ @Substitution (subset = subset , color = color . format ( default = "yellow" ) , props = props )
3593
3593
def highlight_quantile (
3594
3594
self ,
3595
3595
subset : Subset | None = None ,
0 commit comments