Tom Pollard

Results 96 comments of Tom Pollard

To reproduce this issue: ``` import pandas as pd from tableone import tableone df = pd.DataFrame( {'cats': ["1", "2", "3", "4", None, None], 'set': ["train","train", "val", "val", "val", "val"]} )...

> That said, the number of missing alone is not very informative for non-categorical variables, so I'd also probably hide that information by default, with the option to display it....

Thanks for picking this up. Version 0.7.5 now respects the order of categorical variables. For example: ```python import pandas as pd from tableone import TableOne day_cat = pd.Categorical(["mon", "wed", "tue",...

@epimedplotly please test the sorting if you have the opportunity (the latest version can be pip/conda installed) and let us know if it works as expected. > Also, if that...

thanks @epimedplotly, glad to hear this helps :) > I reiterate that if there isn't an order for a categorical variable it would be awesome if it could be ordered...

@JohannesWiesner great suggestion, thanks! we'll take a look at this.

Hi @sgummidipundi, you've raised a good point, which is that there is no "continuous" argument. At the moment, tableone expects you to define the categorical variables using the "categorical" argument....

The `tabulate` method was added in 0.6.4: ```py # import libraries from tableone import TableOne import pandas as pd # load sample data into a pandas dataframe url="https://raw.githubusercontent.com/tompollard/tableone/master/data/pn2012_demo.csv" data=pd.read_csv(url) table...

@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...

@ash10hk please could you post sample code and data to reproduce the error?