tompollard / tableone

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

Higher precision #118

Closed jottoy closed 2 months ago

jottoy commented 3 years ago

Hello,

thank you for this nice toolbox! Is there a way to increase the precision of the numbers in the output table?

Thank you!

vl-dud commented 2 years ago

@jottoy check the parameter decimals in TableOne class

tompollard commented 2 months ago

That's right @jottoy, you should be able to set the precision using decimals. e.g.

# set decimal places for height to 3
decimals = {"weight": 3}