altair.ChainedWhen#

class altair.ChainedWhen(condition, conditions, /)#

Utility class for when-then-otherwise conditions.

Represents the state after calling when().then().when().

This partial state requires calling ChainedWhen.then() to finish the condition.

References

polars.when

__init__(condition, conditions, /)#

Methods

__init__(condition, conditions, /)

then(statement, /, **kwds)

Attach a statement to this predicate.