Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying true_values and false_values for Booltype #200

Open
Pujeeth opened this issue Sep 12, 2023 · 0 comments
Open

Specifying true_values and false_values for Booltype #200

Pujeeth opened this issue Sep 12, 2023 · 0 comments

Comments

@Pujeeth
Copy link

Pujeeth commented Sep 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant