We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I received an error when passing a pandas dataframe to a from params object.
Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
The error is thrown for this line:
tango/tango/common/params.py
Line 194 in 73d5633
Its ambiguous as the condition is evaluated element wise on the dataframe.
tango, version 1.0.1
absl-py==1.1.0 -e git+https://github.com/measure-labs/tango.git@9ba8e1456d47863654e773ffea235b0a3a6a76ac#egg=ai2_tango aiohttp==3.8.1 aiosignal==1.2.0 alabaster==0.7.12 alembic==1.8.0 arviz==0.11.0 asttokens @ file:///opt/conda/conda-bld/asttokens_1646925590279/work astunparse==1.6.3 async-timeout==4.0.2 attrs==21.4.0 Babel==2.10.3 backcall @ file:///home/ktietz/src/ci/backcall_1611930011877/work base58==2.1.1 beaker-py==1.6.3 beautifulsoup4 @ file:///opt/conda/conda-bld/beautifulsoup4_1650462163268/work black==22.6.0 bleach==5.0.1 boto3==1.24.26 botocore==1.27.27 Bottleneck @ file:///opt/conda/conda-bld/bottleneck_1657175564434/work brotlipy==0.7.0 cached-path==1.1.5 cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work cachetools==5.2.0 certifi==2022.9.24 cffi @ file:///opt/conda/conda-bld/cffi_1642701102775/work cftime==1.6.2 chardet @ file:///tmp/build/80754af9/chardet_1607706775000/work charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work chex==0.1.4 click==8.1.3 click-help-colors==0.9.1 cloudpickle==2.1.0 codecov==2.1.12 colorama==0.4.5 commonmark==0.9.1 conda==4.13.0 conda-build==3.21.9 conda-package-handling @ file:///tmp/build/80754af9/conda-package-handling_1649105784853/work coverage==6.4.1 cryptography @ file:///tmp/build/80754af9/cryptography_1652101588893/work cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work dask==2022.7.0 datasets==2.3.2 debugpy @ file:///tmp/build/80754af9/debugpy_1637091799509/work decorator @ file:///opt/conda/conda-bld/decorator_1643638310831/work deepdiff==5.8.1 dill==0.3.5.1 distributed==2022.7.0 dm-tree==0.1.7 docker==5.0.3 docker-pycreds==0.4.0 docutils==0.18.1 entrypoints @ file:///tmp/build/80754af9/entrypoints_1649926439650/work enum-compat==0.0.3 etils==0.7.1 executing @ file:///opt/conda/conda-bld/executing_1646925071911/work fairscale==0.4.8 fastjsonschema==2.16.2 filelock @ file:///opt/conda/conda-bld/filelock_1647002191454/work flake8==4.0.1 flaky==3.7.0 flatbuffers==1.12 flax==0.5.0 fonttools==4.34.4 frozenlist==1.3.0 fsspec==2022.5.0 furo==2022.6.21 future==0.18.2 gast==0.4.0 gitdb==4.0.9 GitPython==3.1.27 glob2 @ file:///home/linux1/recipes/ci/glob2_1610991677669/work glog==0.3.1 google-api-core==2.8.2 google-auth==2.9.0 google-auth-oauthlib==0.4.6 google-cloud-core==2.3.1 google-cloud-storage==2.4.0 google-crc32c==1.3.0 google-pasta==0.2.0 google-resumable-media==2.3.3 googleapis-common-protos==1.56.3 greenlet==1.1.2 grpcio==1.47.0 h5py==3.7.0 HeapDict==1.0.1 heartpy==1.2.7 huggingface-hub==0.8.1 idna @ file:///tmp/build/80754af9/idna_1637925883363/work imagesize==1.4.1 importlib-metadata==4.12.0 importlib-resources==5.9.0 iniconfig==1.1.1 ipdb==0.13.9 ipykernel @ file:///tmp/build/80754af9/ipykernel_1647000773790/work/dist/ipykernel-6.9.1-py3-none-any.whl ipython @ file:///opt/conda/conda-bld/ipython_1657652213665/work isort==5.10.1 jax==0.3.16 jaxlib==0.3.15 jedi @ file:///tmp/build/80754af9/jedi_1644297102865/work jeepney==0.8.0 Jinja2 @ file:///tmp/build/80754af9/jinja2_1612213139570/work jmespath==1.0.1 joblib==1.1.0 jsonnet==0.18.0 jsonpickle==2.2.0 jsonschema==4.16.0 jupyter-client @ file:///opt/conda/conda-bld/jupyter_client_1650622202839/work jupyter-core @ file:///opt/conda/conda-bld/jupyter_core_1651671229925/work keras==2.9.0 Keras-Preprocessing==1.1.2 keyring==23.6.0 kiwisolver==1.4.3 libarchive-c @ file:///tmp/build/80754af9/python-libarchive-c_1617780486945/work libclang==14.0.6 livereload==2.6.3 locket==1.0.0 Mako @ file:///home/conda/feedstock_root/build_artifacts/mako_1663885412539/work Markdown==3.3.7 markdown-it-py==2.1.0 MarkupSafe @ file:///tmp/build/80754af9/markupsafe_1621523467000/work matplotlib==3.5.2 matplotlib-inline==0.1.3 mccabe==0.6.1 mdit-py-plugins==0.3.0 mdurl==0.1.1 mkl-fft==1.3.1 mkl-random @ file:///tmp/build/80754af9/mkl_random_1626186066731/work mkl-service==2.4.0 mock @ file:///tmp/build/80754af9/mock_1607622725907/work more-itertools==8.13.0 msgpack==1.0.4 multidict==6.0.2 multiprocess==0.70.13 mypy==0.961 mypy-extensions==0.4.3 myst-parser==0.18.0 nbformat==5.6.1 nest-asyncio @ file:///tmp/build/80754af9/nest-asyncio_1649847906199/work netCDF4==1.6.1 neurokit2==0.2.0 numexpr @ file:///opt/conda/conda-bld/numexpr_1656940300424/work numpy==1.23.0 oauthlib==3.2.0 olefile @ file:///home/conda/feedstock_root/build_artifacts/olefile_1602866521163/work opencv-python==4.6.0.66 opt-einsum==3.3.0 optax==0.1.3 ordered-set==4.1.0 packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work pandas==1.4.4 parso @ file:///opt/conda/conda-bld/parso_1641458642106/work partd==1.2.0 pathspec==0.9.0 pathtools==0.1.2 patsy @ file:///home/conda/feedstock_root/build_artifacts/patsy_1632667180946/work pendulum==2.1.2 petname==2.6 pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work pickleshare @ file:///tmp/build/80754af9/pickleshare_1606932040724/work Pillow==9.2.0 pipeline-common==1.0 pkginfo @ file:///tmp/build/80754af9/pkginfo_1643162084911/work platformdirs==2.5.2 plotly==5.10.0 pluggy==1.0.0 promise==2.3 prompt-toolkit==3.0.30 protobuf==3.19.4 psutil @ file:///opt/conda/conda-bld/psutil_1656431268089/work psycopg2-binary==2.9.3 ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl pure-eval @ file:///opt/conda/conda-bld/pure_eval_1646925070566/work py==1.11.0 pyarrow==8.0.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycodestyle==2.8.0 pycosat==0.6.3 pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work pydantic==1.9.1 pyDeprecate==0.3.2 pyflakes==2.4.0 Pygments==2.12.0 pygpu==0.7.6 pymc3 @ file:///Users/ktietz/demo/mc3/conda-bld/pymc3_1629812637918/work pyOpenSSL @ file:///opt/conda/conda-bld/pyopenssl_1643788558760/work pyparsing==3.0.9 pyrsistent==0.18.1 PySocks @ file:///tmp/build/80754af9/pysocks_1605305812635/work pytest==7.1.2 pytest-cov==3.0.0 pytest-sphinx==0.4.0 python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work python-gflags==3.1.2 pytorch-lightning==1.6.4 pytz @ file:///opt/conda/conda-bld/pytz_1654762638606/work pytzdata==2020.1 PyWavelets==1.3.0 PyYAML==6.0 pyzmq @ file:///opt/conda/conda-bld/pyzmq_1657724186960/work readme-renderer==35.0 regex==2022.7.9 requests @ file:///opt/conda/conda-bld/requests_1657734628632/work requests-oauthlib==1.3.1 requests-toolbelt==0.9.1 responses==0.18.0 retry==0.9.2 retrying==1.3.3 rfc3986==2.0.0 rich==12.4.4 rsa==4.8 ruamel-yaml-conda @ file:///tmp/build/80754af9/ruamel_yaml_1616016711199/work s3transfer==0.6.0 sacremoses==0.0.53 scikit-learn==1.1.1 scipy==1.8.1 seaborn==0.12.0 SecretStorage==3.3.2 sentencepiece==0.1.96 sentry-sdk==1.7.0 setproctitle==1.2.3 shortuuid==1.0.9 six @ file:///tmp/build/80754af9/six_1644875935023/work smmap==5.0.0 snowballstemmer==2.2.0 sortedcontainers==2.4.0 soupsieve @ file:///tmp/build/80754af9/soupsieve_1636706018808/work Sphinx==5.0.2 sphinx-autobuild==2021.3.14 sphinx-autodoc-typehints==1.18.3 sphinx-basic-ng==0.0.1a12 sphinx-copybutton==0.5.0 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 SQLAlchemy==1.4.39 sqlitedict==2.0.0 stack-data==0.3.0 statsmodels==0.13.2 tables @ file:///tmp/build/80754af9/pytables_1647597643828/work tblib==1.7.0 tenacity==8.1.0 tensorboard==2.9.1 tensorboard-data-server==0.6.1 tensorboard-plugin-wit==1.8.1 tensorflow-cpu==2.9.1 tensorflow-estimator==2.9.0 tensorflow-io-gcs-filesystem==0.26.0 termcolor==1.1.0 Theano @ file:///home/conda/feedstock_root/build_artifacts/theano_1604228587620/work threadpoolctl==3.1.0 tokenizers==0.12.1 toml==0.10.2 tomli==2.0.1 toolz==0.12.0 torch==1.12.1 torch-model-archiver==0.6.0 torchaudio==0.12.1 torchmetrics==0.9.2 torchvision==0.13.1 tornado @ file:///tmp/build/80754af9/tornado_1606942317143/work tqdm @ file:///opt/conda/conda-bld/tqdm_1650891076910/work traitlets==5.3.0 transformers==4.20.1 twine==4.0.1 types-pytz==2022.1.1 types-PyYAML==6.0.9 types-setuptools==62.6.1 typing-extensions==3.10.0.2 urllib3 @ file:///opt/conda/conda-bld/urllib3_1650639997961/work validators==0.20.0 wandb==0.13.2 wcwidth @ file:///Users/ktietz/demo/mc3/conda-bld/wcwidth_1629357192024/work webencodings==0.5.1 websocket-client==1.3.3 Werkzeug==2.1.2 wrapt==1.14.1 xarray @ file:///home/conda/feedstock_root/build_artifacts/xarray_1658844022165/work xarray-einstats @ file:///home/conda/feedstock_root/build_artifacts/xarray-einstats_1655671011237/work xgboost==1.6.2 xxhash==3.0.0 yarl==1.7.2 zict==2.2.0 zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1659400682470/work
The text was updated successfully, but these errors were encountered:
Fix #483
c216931
Fix #483 (#484)
65f699d
Successfully merging a pull request may close this issue.
🐛 Describe the bug
I received an error when passing a pandas dataframe to a from params object.
Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
The error is thrown for this line:
tango/tango/common/params.py
Line 194 in 73d5633
Its ambiguous as the condition is evaluated element wise on the dataframe.
tango, version 1.0.1
Versions
The text was updated successfully, but these errors were encountered: