altair.Then#
- class altair.Then(conditions, /)#
Utility class for
when-then-otherwiseconditions.Represents the state after calling
when().then().This state is a valid condition on its own.
It can be further specified, via multiple chained when-then calls, or finalized with
Then.otherwise().References
- __init__(conditions, /)#
Methods
__init__(conditions, /)otherwise(statement, /, **kwds)Finalize the condition with a default value.
to_dict(*args, **kwds)when([predicate, empty])Attach another predicate to the condition.
Attributes
condition