altair.When#
- class altair.When(condition, /)#
Utility class for
when-then-otherwise
conditions.Represents the state after calling
when()
.This partial state requires calling
When.then()
to finish the condition.References
- __init__(condition, /)#
Methods
__init__
(condition, /)then
(statement, /, **kwds)Attach a statement to this predicate.