altair.LookupTransform#

class altair.LookupTransform(lookup=Undefined, default=Undefined, **kwds)#

查找转换模式包装器。

Parameters:
lookupstr

输入主要数据源。

defaultAny

查找失败时使用的默认值。

默认值: null

asstr, FieldName, Sequence[str, FieldName]

用于存储查找的数据值的输出字段。

对于数据查找,如果已指定from.fields(将使用这些字段名),则可以将此属性留空;如果未指定from.fields,则as必须是一个字符串。

对于选择查询,此属性是可选的:如果未指定,查找的值将存储在一个对应于选择的属性下;如果指定,则必须对应于 from.fields

fromdict, LookupData, LookupSelection

二级数据参考的数据源或选择。

__init__(lookup=Undefined, default=Undefined, **kwds)#

方法

__init__([查找, 默认])

copy([深度, 忽略])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构造类。

from_json(json_string[, validate])

从有效的 JSON 字符串实例化对象。

resolve_references([schema])

解析此对象的架构或根架构中的引用。

to_dict([validate, ignore, context])

返回对象的字典表示。

to_json([validate, indent, sort_keys, ...])

以字符串形式输出该对象的 JSON 表示。

validate(instance[, schema])

在rootschema的上下文中验证实例是否符合类模式。

validate_property(name, value[, schema])

在根架构的上下文中,根据属性架构验证一个属性。