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

The truth value of a Index is ambiguous #6

Closed
Rambatino opened this issue May 4, 2017 · 1 comment
Closed

The truth value of a Index is ambiguous #6

Rambatino opened this issue May 4, 2017 · 1 comment

Comments

@Rambatino
Copy link
Owner

  File "/Users/Mark/clients/kruskals/Kruskals/kruskals.py", line 46, in from_pandas_df
    return Kruskals(ind_values, dep_values, i_vars)
  File "/Users/Mark/clients/kruskals/Kruskals/kruskals.py", line 24, in __init__
    if i_vars and len(i_vars) != ndarr.shape[1]:
  File "/Users/Mark/anaconda/envs/quattro8/lib/python2.7/site-packages/pandas/indexes/base.py", line 1388, in __nonzero__
    .format(self.__class__.__name__))
ValueError: The truth value of a Index is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
^CException SystemExit: 0 in <module 'threading' from '/Users/Mark/anaconda/envs/quattro8/lib/python2.7/threading.pyc'> ignored

This occurs if you pass a numpy array of the column names, rather than a python list

@Rambatino
Copy link
Owner Author

Fixing in #9

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