tompollard / tableone

Create "Table 1" for research papers in Python
https://pypi.python.org/pypi/tableone/
MIT License
159 stars 38 forks source link

Move validation code to a new validators.py module #169

Closed tompollard closed 1 month ago

tompollard commented 1 month ago

Refactoring for readability. This pull request moves code for validating input data and arguments to a new "validators.py" module.

validators.py has two classes:

The old validation code did some type manipulation (e.g. if groupby was provided as a list, it would be silently converted to a str). I have removed this code for now, and will work out what to do with it later.