We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
empty
condition
1 parent 72bd84d commit 09c355dCopy full SHA for 09c355d
altair/vegalite/v5/api.py
@@ -1492,6 +1492,8 @@ def condition(
1492
predicate: _PredicateType,
1493
if_true: _StatementType,
1494
if_false: _StatementType,
1495
+ *,
1496
+ empty: Optional[bool] = Undefined,
1497
**kwargs,
1498
) -> SchemaBase | dict[str, _ConditionType | Any]:
1499
"""A conditional attribute or encoding
@@ -1513,7 +1515,6 @@ def condition(
1513
1515
spec: dict or VegaLiteSchema
1514
1516
the spec that describes the condition
1517
"""
- empty = kwargs.pop("empty", Undefined)
1518
condition = _predicate_to_condition(predicate, empty=empty)
1519
return _condition_to_selection(condition, if_true, if_false, **kwargs)
1520
0 commit comments