tompollard / tableone

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

Add include_null argument to handle nulls for categorical values. Ref #114. #175

Closed tompollard closed 3 months ago

tompollard commented 3 months ago

Adds a new include_null argument. If set to True, null values for categorical values will be treated as a category level:

    include_null : bool, optional
        Include None/Null values for categorical variables by treating them as a
        category level. (default: True)

This fixes the issue described in https://github.com/tompollard/tableone/issues/114.