Skip to content

Problem when integrating min_max for variables -- Seems that I have to choose between presenting SD or range #197

@anovabr

Description

@anovabr

I'm using TableOne in Python 3.11.9
This code below is not presenting the SD of each variable. Is it possible to have both SD and range ?
Thanks.

# Define the list of variables
variables = ['f_exec_a', 'f_exec_e', 'f_exec_o', 'f_exec_dm', 'f_exec_c', 'f_exec_pb', 'fe_score']

# Generate the descriptive table
table = TableOne(df_fe, 
                 columns=variables,
                 min_max=variables,
                 continuous=variables,
                 display_all=True,
                 missing=False)

# Print the table
print(table.tabulate(tablefmt="rounded_outline"))

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions