Skip to content

Unhashable type: list when initializing DataLabeler #1140

@js430

Description

@js430

General Information:

  • OS: MacOS Sonoma 14.4, intel i5 processor
  • Python version: 3.9
  • Library version: 0.10.9

Describe the bug:
When initializing a datalabeler, I get the following error:

TypeError: unhashable type: 'list'

To Reproduce:

import dataprofiler as dp
from dataprofiler.data_readers.csv_data import CSVData

data=dp.Data("sample_data.csv")

data_labeler = dp.DataLabeler(labeler_type='structured')

Expected behavior:

I would expect no output, just the initialization of it and then afterwards, I could run something like:

predictions = data_labeler.predict(data)

Screenshots:
Full error log:
unhashable_type_list

Additional context:

Attached is the sample data file I used, just a list of randomly generated Mac Addresses, IP addresses, and IMSIs
sample_data.csv

Metadata

Metadata

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions