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

Expectation "expect_column_values_to_be_between" returns error if null values present #72

Closed
jpcampb2 opened this issue Sep 11, 2017 · 10 comments

Comments

@jpcampb2
Copy link

When I run df.my_df.expect_column_values_to_be_between on columns that have null values, it
throws this IndexingError.

----> 9 df.expect_column_values_to_be_between("lumbar__imu_1__angular_velocity__z", -5, 5, mostly=None)

/Users/erin/anaconda/lib/python2.7/site-packages/great_expectations/dataset/base.pyc in wrapper(self, *args, **kwargs)
    106                             return_obj = False
    107                     else:
--> 108                         raise(err)
    109 
    110                 if output_format != 'BOOLEAN_ONLY':

IndexingError: Unalignable boolean Series key provided

The column has 2 NaNs. When I drop the NaNs, then expectation works without error.

Not sure if this is intended behavior of the expectation, but it would be a nice feature if the expectation could handle missing data, perhaps as an argument of the expectation (expect_some_null_values = True/False).

@jpcampb2
Copy link
Author

Great Expecatations should be handling null values properly (as you expect), and you're definitely running into a bug. The expect_column_values_to_be_between expectations should be discarding null values before performing the tests (but making that information available to you as a part of the summary_obj if you choose the SUMMARY output format).

I'm not sure what is causing the problem yet. The following works for me:

import pandas as pd
import numpy as np

import great_expectations as ge

df = pd.DataFrame({'x': [0,1,2,np.nan,3, -5]})
df = ge.df(df)
print(df.expect_column_values_to_be_between('x', -1, 4, output_format='SUMMARY', mostly=None))

Could you share anything about the values in the column on which you're trying to run the expectation and potentially also the build environment you're running on? We're just starting to test across different platforms, and it's possible that we're having an issue there.

@jpcampb2
Copy link
Author

I tried running your code above, and it throws the same error, so we must be having some version/environment issue.

I'm running python 2.7, installed through anaconda. Tried in jupyter notebook, ipython and as a command line script. Installed great-expectations from this commit hash: 1a5b357e54382bbe0aa0ab76e861026db211ad03.

What else would be helpful to know?

@jpcampb2
Copy link
Author

Can you run conda list --explicit inside the environment you're using to run on and include the results? Which OS are you running on?

@jpcampb2
Copy link
Author

Here are the results.

# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-64
@EXPLICIT
https://repo.continuum.io/pkgs/free/osx-64/_license-1.1-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/_nb_ext_conf-0.3.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/alabaster-0.7.9-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/anaconda-custom-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/anaconda-clean-1.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/anaconda-client-1.5.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/anaconda-navigator-1.3.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/appnope-0.1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/appscript-1.0.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/argcomplete-1.0.0-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/astroid-1.4.7-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/astropy-1.2.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/babel-2.3.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/backports-1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/backports_abc-0.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/beautifulsoup4-4.5.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/bitarray-0.8.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/bkcharts-0.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/blaze-0.10.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/bokeh-0.12.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/boto-2.42.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/bottleneck-1.1.0-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cdecimal-2.3-py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cffi-1.7.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/chest-0.2.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/click-6.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cloudpickle-0.2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/clyent-1.2.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/colorama-0.3.7-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/conda-4.3.23-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/conda-build-2.0.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/conda-env-2.6.0-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/configobj-5.0.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/configparser-3.5.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/contextlib2-0.5.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cryptography-1.5-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/curl-7.49.0-1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cycler-0.10.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cython-0.24.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/cytoolz-0.8.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/dask-0.11.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/datashape-0.5.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.10-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/dill-0.2.5-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/docutils-0.12-py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/dynd-python-0.7.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/entrypoints-0.2.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/enum34-1.1.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/et_xmlfile-1.0.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/fastcache-1.0.2-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/filelock-2.0.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/flask-0.11.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/flask-cors-2.1.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/freetype-2.5.5-1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/funcsigs-1.0.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/functools32-3.2.3.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/futures-3.0.5-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/get_terminal_size-1.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/gevent-1.1.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/greenlet-0.4.10-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/grin-1.2.1-py27_3.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/h5py-2.6.0-np111py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/hdf5-1.8.17-1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/heapdict-1.0.0-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/icu-54.1-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/idna-2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/imagesize-0.7.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ipaddress-1.0.16-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ipykernel-4.5.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ipython-5.1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ipython_genutils-0.1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ipywidgets-5.2.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/itsdangerous-0.24-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jbig-2.1-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jdcal-1.2-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jedi-0.9.0-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jinja2-2.8-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jpeg-8d-2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jsonschema-2.5.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jupyter-1.0.0-py27_3.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jupyter_client-4.4.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jupyter_console-5.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/jupyter_core-4.2.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/lazy-object-proxy-1.2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libdynd-0.7.2-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libpng-1.6.22-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libpq-9.5.4-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libtiff-4.0.6-2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libxml2-2.9.2-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/libxslt-1.1.28-2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/llvmlite-0.13.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/locket-0.2.0-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/lxml-3.6.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/markupsafe-0.23-py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/matplotlib-1.5.3-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/mistune-0.7.3-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/mkl-11.3.3-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/mkl-service-1.1.2-py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/mpmath-0.19-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/multipledispatch-0.4.8-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nb_anacondacloud-1.2.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nb_conda-2.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nb_conda_kernels-2.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nbconvert-4.2.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nbformat-4.3.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nbpresent-3.0.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/networkx-1.11-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nltk-3.2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/nose-1.3.7-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/notebook-4.2.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/numba-0.28.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/numexpr-2.6.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/numpy-1.11.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/odo-0.5.0-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/openpyxl-2.3.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/openssl-1.0.2j-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pandas-0.18.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/partd-0.3.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/path.py-8.2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pathlib2-2.1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/patsy-0.4.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pep8-1.7.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pexpect-4.0.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pickleshare-0.7.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pillow-3.3.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pip-8.1.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pkginfo-1.3.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/plotly-2.0.11-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ply-3.9-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/prompt_toolkit-1.0.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/psutil-4.3.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/psycopg2-2.6.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ptyprocess-0.5.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/py-1.4.31-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyasn1-0.1.9-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyaudio-0.2.7-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pycosat-0.6.1-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pycparser-2.14-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pycrypto-2.6.1-py27_4.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pycurl-7.43.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyflakes-1.3.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pygments-2.1.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pylint-1.5.4-py27_1.tar.bz2
https://conda.anaconda.org/erik/osx-64/pyobjc-2.5.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyopenssl-16.2.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyparsing-2.1.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyqt-5.6.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pytables-3.2.3.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pytest-2.9.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/python-2.7.12-1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/python-dateutil-2.5.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/python.app-1.2-py27_4.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pytz-2016.6.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyyaml-3.12-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/pyzmq-15.4.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/qt-5.6.0-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/qtawesome-0.3.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/qtconsole-4.2.1-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/qtpy-1.1.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/readline-6.2-2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/redis-3.2.0-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/redis-py-2.10.5-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/requests-2.12.4-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/rope-0.9.4-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ruamel_yaml-0.11.14-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/scikit-image-0.12.3-np111py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/scikit-learn-0.17.1-np111py27_2.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/scipy-0.18.1-np111py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/seaborn-0.7.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/setuptools-27.2.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/simplegeneric-0.8.1-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/singledispatch-3.4.0.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sip-4.18-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/six-1.10.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/snowballstemmer-1.2.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sockjs-tornado-1.0.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sphinx-1.4.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/spyder-3.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sqlalchemy-1.0.13-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sqlite-3.13.0-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/ssl_match_hostname-3.4.0.2-py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/statsmodels-0.6.1-np111py27_1.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/sympy-1.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/terminado-0.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/tk-8.5.18-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/toolz-0.8.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/tornado-4.4.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/traitlets-4.3.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/unicodecsv-0.14.1-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/wcwidth-0.1.7-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/werkzeug-0.11.11-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/wheel-0.29.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/widgetsnbextension-1.2.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/wrapt-1.10.6-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/xlrd-1.0.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/xlsxwriter-0.9.3-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/xlwings-0.10.0-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/xlwt-1.1.2-py27_0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/xz-5.2.2-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/yaml-0.1.6-0.tar.bz2
https://repo.continuum.io/pkgs/free/osx-64/zlib-1.2.8-3.tar.bz2

I'm on macOS Sierra 10.12.6

@jpcampb2
Copy link
Author

@eringong I can replicate your issue using the environment you have, however I believe that it's an issue that pandas has fixed in pandas-dev/pandas#13637 related to the way that series are broadcast together.

Can you upgrade your pandas to the current version (or at least newer?)

@jpcampb2
Copy link
Author

Does this mean we should update requirements.txt to require pandas 0.19?

On Wed, Aug 30, 2017 at 5:30 AM, jcampbell [email protected] wrote:

@eringong https://github.com/eringong I can replicate your issue using
the environment you have, however I believe that it's an issue that pandas
has fixed in pandas-dev/pandas#13637
pandas-dev/pandas#13637 related to the way
that series are broadcast together.

Can you upgrade your pandas to the current version (or at least newer?)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/abegong/great_expectations/issues/72#issuecomment-325975653,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABLoLXuAuwrJyWjDN5ORW0w0h4ChIR-iks5sdVX-gaJpZM4PGbI2
.

--
[email protected]
@abegong https://twitter.com/AbeGong
http://www.abegong.com

@jpcampb2
Copy link
Author

If it's definitely the issue, then yes I think so. (Though the current requirements should have alerted on install that the scipy version is out of date too, I think).

@jpcampb2
Copy link
Author

Updated all conda packages and it works beautifully now. Thank you!

@jpcampb2
Copy link
Author

On the scipy version alert, it is interesting that when I installed great-expectations, I got this message from the install:

Requirement already satisfied: scipy>=0.19.0 in /Users/erin/anaconda/lib/python2.7/site-packages (from great-expectations==0.1.1)

although as we confirmed, conda actually was running scipy-0.18.1, so should have failed.

@jpcampb2
Copy link
Author

Glad it's working!

I updated the requirements file in develop to clarify that we have that dependency on a feature in newer pandas.

For the issue of the scipy requirement, I suspect the issue was from scipy having been installed with pip (perhaps by something else you pip-installed) rather than via conda. I probably should have asked for the result of conda env export > environment.yml instead of conda list.

jpcampb2 pushed a commit that referenced this issue Dec 22, 2017
…index-based bitwise comparison of Series objects (#72)
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