Skip to content

TupleTarget #1

@gabrielgonzaga

Description

@gabrielgonzaga

Define a way to create tuple targets. E.g.

Say my task creates an encoder, and I want to return the encoding object and the transformed data frame:

@inherit_list(ETLTask)
class EncodeCat(Task):
target_type = PickleTarget, ParquetTarget

def easy_run(self, inputs):
    df = inputs[0]
    df, encs = encode_func(df)
    return df, encs

One would be a Pickle and the other a Parquet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions