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

ER: give a better error message for hashing indices #5019

Merged
merged 1 commit into from
Sep 28, 2013
Merged

ER: give a better error message for hashing indices #5019

merged 1 commit into from
Sep 28, 2013

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Sep 28, 2013

No description provided.

@ghost ghost assigned cpcloud Sep 28, 2013
@cpcloud
Copy link
Member Author

cpcloud commented Sep 28, 2013

@jtratner @jreback ok with this?

@@ -600,7 +600,7 @@ def __contains__(self, key):
return False

def __hash__(self):
return hash(self.view(np.ndarray))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this actually used anywhere? or just provided for compat?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it raises the same TypeError as my change does, but my change shows the subclass name

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so i'm thinking compat

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hash raise test has been around since june 23 2011, incidentally that's my birthday

@jreback
Copy link
Contributor

jreback commented Sep 28, 2013

ok...then

cpcloud added a commit that referenced this pull request Sep 28, 2013
ER: give a better error message for hashing indices
@cpcloud cpcloud merged commit 60d7fce into pandas-dev:master Sep 28, 2013
@cpcloud cpcloud deleted the raise-on-index-hash branch September 28, 2013 20:57
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

Successfully merging this pull request may close these issues.

2 participants