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

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). #1036

Open
Alexxakiode opened this issue Sep 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Alexxakiode
Copy link

Please can someone help me look into why my code is not running? Thanks
ValueError

@Alexxakiode Alexxakiode added the bug Something isn't working label Sep 18, 2023
@gurezende
Copy link

In the examples from the documentation, the datasets created by the dowhy package generate a dictionary with the data and some other information, such as treatment and outcome variable names.
In that case, when they use data['treatment_name'] they are actually calling the dictionary key.
So, to solve that problem, use just the name of your variable as input for the argument.
Example,
treatment = ['power']
outcome= 'Energy usage.

That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants