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)

将语句附加到此谓词。