altair.ChainedWhen#

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

用于 when-then-otherwise 条件的工具类。

表示在调用 when().then().when() 之后的状态。

这个部分状态需要调用 ChainedWhen.then() 来完成条件。

参考文献

polars.when

__init__(condition, conditions, /)#

方法

__init__(condition, conditions, /)

then(statement, /, **kwds)

将语句附加到该谓词。