Skip to content

Error running calculate feature matrix #614

@kmax12

Description

@kmax12

Getting the following error when calling ft.calculate_feature_matrix on Featuretools 0.9.0

  File "/usr/local/lib/python3.6/dist-packages/featuretools/utils/entry_point.py", line 46, in function_wrapper
    raise e
  File "/usr/local/lib/python3.6/dist-packages/featuretools/utils/entry_point.py", line 38, in function_wrapper
    return_value = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/synthesis/dfs.py", line 228, in dfs
    verbose=verbose)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/calculate_feature_matrix.py", line 267, in calculate_feature_matrix
    pass_columns=pass_columns)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/calculate_feature_matrix.py", line 498, in linear_calculate_chunks
    target_time, pass_columns)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/calculate_feature_matrix.py", line 343, in calculate_chunk
    training_window=window)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/utils.py", line 37, in wrapped
    r = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/calculate_feature_matrix.py", line 318, in calc_results
    matrix = calculator.run(ids)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/feature_set_calculator.py", line 102, in run
    filter_values=instance_ids)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/computational_backends/feature_set_calculator.py", line 189, in _calculate_features_for_entity
    training_window=self.training_window)
  File "/usr/local/lib/python3.6/dist-packages/featuretools/entityset/entity.py", line 273, in query_by_values
    df = df[columns]
  File "/usr/local/lib/python3.6/dist-packages/pandas/core/frame.py", line 2688, in __getitem__
    return self._getitem_column(key)
  File "/usr/local/lib/python3.6/dist-packages/pandas/core/frame.py", line 2695, in _getitem_column
    return self._get_item_cache(key)
  File "/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py", line 2487, in _get_item_cache
    res = cache.get(item)
TypeError: unhashable type: 'set'

I suspect this is because I am running pandas 0.23.4. If I upgrade, I do not have this problem.

Output of featuretools.show_info()

Featuretools version: 0.9.0

Featuretools installation directory: /usr/local/lib/python3.6/dist-packages/featuretools

SYSTEM INFO

python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.125-linuxkit
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: None
LOCALE: en_US.UTF-8

INSTALLED VERSIONS

numpy: 1.15.4
pandas: 0.23.4
tqdm: 4.32.1
toolz: 0.9.0
PyYAML: 5.1
cloudpickle: 1.2.1
future: 0.17.1
dask: 1.2.2
distributed: 1.28.1
psutil: 5.6.3
Click: 7.0
scikit-learn: 0.20.3
pip: 19.1.1
setuptools: 41.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions