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

Unhashable type: list when initializing DataLabeler #1140

Open
js430 opened this issue May 18, 2024 · 1 comment
Open

Unhashable type: list when initializing DataLabeler #1140

js430 opened this issue May 18, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@js430
Copy link

js430 commented May 18, 2024

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

@js430 js430 added the Bug Something isn't working label May 18, 2024
@taylorfturner
Copy link
Contributor

Hey @js430! Thanks for opening the issue.

I'm unable to replicate this on my end with 0.10.9.

import dataprofiler as dp

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

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

predictions = data_labeler.predict(data)

I'm on sonoma and M1 chip, myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants