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

Problem - The truth value of an array with more than one elemnet is ambigous. #161

Open
filipy1 opened this issue May 6, 2024 · 1 comment

Comments

@filipy1
Copy link

filipy1 commented May 6, 2024

Hello appreciate the hard work and found the package really useful, recently thought i came across a problem I think might be some bug or functionality i cannot understand?

I follow the basic idea of creating a data set and a list of the categorical columns and providing that to the TableOne function without any additional conditions and I get the error message provided below, ill really appreciate if someone can clarify if its a bug or something on my side of things.

attached are snippets of the df, code and error

Screenshot 2024-05-06 at 14 52 33

Screenshot 2024-05-06 at 14 53 15

Screenshot 2024-05-06 at 14 52 54

@filipy1 filipy1 changed the title Problem - The truth value of an array with more than one elemnet is ambigous. Use a Problem - The truth value of an array with more than one elemnet is ambigous. May 6, 2024
@filipy1
Copy link
Author

filipy1 commented May 6, 2024

I'll add that this error pops up when I try to use a categorical list of columns, when I do not use it i get another error

Screenshot 2024-05-06 at 15 27 29

The way I somewhat managed to bypass the problem is by exporting my df to excel and importing it back to python and suddenly the error didn't occur

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

1 participant