Skip to content

Specifying true_values and false_values for Booltype #200

@Pujeeth

Description

@Pujeeth

Unable to specify "true_vlaues" and "false_values" from the code rather than changing the values in the package, is there a way to specify from the initialization of "type_guess" function itself to declare Booltype to consider predefined "true_values" i.e.

types = type_guess(row_set,[types.StringType, types.IntegerType, types.DecimalType, types.BoolType(true_values = ('yes'),false_values=('no'))], strict=True)

Instead of changing the "true_value" in site-packages/messytables/types.py, How can I pass it in the calling code.

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