Skip to content

featurebyte.Target.str.len

len( ) -> Target

Description

Computes length of each string element.

Returns

  • Target
    A new Target object.

Examples

Compute the length of each string element in the ProductGroupLookup target:

>>> target = catalog.get_target("ProductGroupLookup")
>>> target["ProductGroupLength"] = target.str.len()