Skip to content

Allow passing in a string transform for tbl.update_spec().add_field() #1882

Closed
@Fokko

Description

@Fokko

Feature Request / Improvement

Today you have to pass in an instance of the transform:

with  tbl.update_spec() as upd:
    upd.add_field("tpep_pickup_datetime", DayTransform())

Instead, I think it would be great to also pass in the name:

with  tbl.update_spec() as upd:
    upd.add_field("tpep_pickup_datetime", "day")

This should be pretty straightforward using the parse_transform function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions