altair.Then#
- class altair.Then(conditions, /)#
用于
when-then-otherwise
条件的工具类。表示调用
when().then()
后的状态。这种状态本身就是一个有效的条件。
可以通过多次链式调用 when-then 进一步指定,或者使用
Then.otherwise()
结束。参考
- __init__(conditions, /)#
方法
__init__
(conditions, /)otherwise
(statement, /, **kwds)使用默认值结束条件。
to_dict
(*args, **kwds)when
([predicate, empty])将另一个谓词附加到条件。
属性
condition