-
Notifications
You must be signed in to change notification settings - Fork 416
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
KPrototypes unhashable type: 'slice' #67
Comments
Were you able to solve this issue, I am facing the same error. |
Instead of giving |
That worked. I tried it reading your comment on 'TypeError: unhashable type #40'. Solved the issue. Thanks a lot. |
@katiyarsahil , can you do me a favor and do the following on your original pandas object?
And tell us what the output of that is? It seems like this is still a bug, as the pandas object is not converted to a numpy array. |
Currently running a piece of code so cant run it right away, will post the
output as soon as my code ends.
…On Fri, Sep 14, 2018 at 5:17 PM Nico de Vos ***@***.***> wrote:
Can you do me a favor and do the following on your original pandas object?
str(df.__class__)
And tell us what the output of that is?
It seems like this is still a bug, as the pandas object is not converted
to a numpy array.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#67 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AZfNJ0YnrKDLf2rxYvGlS92-V4olZTR_ks5ubDkJgaJpZM4TFqns>
.
|
"<class 'pandas.core.frame.DataFrame'>". This is the output i get. I had to convert this dataframe to an array to sucessfully run the fit_predict command. |
What version of kmodes are you using, @katiyarsahil ? I'm puzzled why this line, introduced in v0.8, does not solve this issue: https://github.com/nicodv/kmodes/blob/0.8/kmodes/kprototypes.py#L134 |
The problem was not with the data, but with the I am now checking the data type of the Line 481 in 9f74a05
|
As far as I got using this method I could pass a list containing the positions of the categorial variables.
But this doesn't work:
The text was updated successfully, but these errors were encountered: