tompollard / tableone

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

ValueError: 'Value' is not in list #133

Open Araddotan opened 1 year ago

Araddotan commented 1 year ago

Hi, I hope this is the right place to ask for assistance with the following ValueError, which I couldn't understand. All the info is attached by screenshots.

It should be noted that I used Tableone before on the save dataframe and the same variables, and everything worked out fine. Importantly, if I delete 'Ankylosis_of_joint' from the "categorical" list, the issue does not result, just appears as the same ValueError regarding a different column.

Thank you so much. Great tool regardless, helped me a lot.

Screen Shot 2022-10-02 at 0 38 41 Screen Shot 2022-10-02 at 0 38 31 Screen Shot 2022-10-02 at 0 38 23 Screen Shot 2022-10-02 at 0 35 00
chrisc3 commented 1 year ago

I am getting the same error when the data frame obviously has the column name. I've tried resetting the column index and renaming the labels to no avail.