Skip to content

Support Enums within Schema or col_vals_in_set #153

@emrynHofmannElephant

Description

@emrynHofmannElephant

Prework

Proposal

Describe the new feature clearly and concisely. If applicable, write a minimal example in Python or in pseudo-code to show input, usage, and desired output.

To help us read any code you include (optional) please try to follow the Style Guide for Python Code.

Is there any chance we'd be able to have Enum support for either/both the Schema & col_vals_in_set(). It is currently partially supported in the Schema by checking if a column is of type Enum, but nothing more. Similarly within col_vals_in_set() you can hack your way around it by using set=[e.name for e in CustomEnum].

I feel that for data validation it is common to need to check if elements are in a set of values (hence the current function), and Enums are a clean way of storing this information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions