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

Remarks = False not suppressing warnings under the table #107

Open
Dekermanjian opened this issue Nov 15, 2020 · 1 comment
Open

Remarks = False not suppressing warnings under the table #107

Dekermanjian opened this issue Nov 15, 2020 · 1 comment

Comments

@Dekermanjian
Copy link

Hi when setting the argument remarks = False in TableOne() I still get the remarks below the table.

@tompollard
Copy link
Owner

@Dekermanjian please could you check that you are using the latest version of the package?

import tableone
print(tableone.__version__)

# 0.7.9

If you are using an earlier version, you should be able to upgrade with one of the following commands (depending on whether you are using conda or pip).

# pip
pip install tableone --upgrade

# conda
conda update tableone

In version 0.7.9, you should be able to switch on/off individual checks. e.g.

# Run Tukey's test for far outliers. If variables are found to
# have far outliers, a remark will be added below the Table 1.
# (default: False)

tukey_test = True

# normal_test : bool, optional
# Test the null hypothesis that a sample come from a normal distribution.
# Uses scipy.stats.normaltest. If variables are found to have non-normal
# distributions, a remark will be added below the Table 1.
# (default: False)

normal_test = True

# dip_test : bool, optional
# Run Hartigan's Dip Test for multimodality. If variables are found to
# have multimodal distributions, a remark will be added below the Table 1.
# (default: False)

dip_test = True

Example with tukey_test, normal_test, dip_test

import pandas as pd
from tableone import load_dataset, TableOne

data = tableone.load_dataset('rhc')
data = load_dataset('pn2012')

table1 = TableOne(data, dip_test=True, normal_test=True, tukey_test=True)

Screen Shot 2020-12-30 at 13 59 49

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

2 participants