Copy: Duplicate fields

class txf.Copy(pipeline, input, outputs)

The Copy transform makes one or more duplicates of a field.

pipeline: Transform

The input pipeline (required).

input: str

The name of the field to duplicate. It will be not be removed.

outputs: tuple(str)

One or more fields to receive the copies. They cannot overwrite existing fields, so use Drop to remove unwanted fields.

Usage

Copy(p, 'Year', 'Last Year')
Copy(p, 'Original', ('Dupe 1', 'Dupe 2',))