-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
RangeIndex as default index #9999
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
Conversation
WIP on making RangeIndex (#9977) the default index
@jreback @shoyer I tried out what happend making RangeIndex the default index: nothing good. - A whopping 60 errors and 13 test failures. - Most of which meant absolutely nothing to me. To make the problem more manageable, I started this tree with a minimal Still I have about 16 errors and 2 failures - most of which I have not idea how they happen. I managed to diagnose and fix one and I am working on another. That said, I will really need help debugging this if you really want to make Maybe you know another pandas developer would would be willing to help out with this - or take ownership? |
Haha, that's not too surprising :). If you keep your branch up to date, I can test it and probably identify at least a few fixes. On Mon, Apr 27, 2015 at 4:00 AM, ARF1 [email protected] wrote:
|
@shoyer That would be great. I managed to whittle the issues down to only a few with this minimal Also, I am not quite sure what to do with the failure in |
@jreback @shoyer Ok, it was truely painfuly but I managed to reduce the issues with the minimal See ( I have narrowed it down to this line: https://github.com/ARF1/pandas/blob/rangeindex_as_default_index/pandas/tools/plotting.py#L1007 Before this line, Any chance you could help with this? |
name=self.name, fastpath=True) | ||
else: | ||
name = kwargs.get('name', self.name) | ||
return self._int64index._shallow_copy(values, **kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're dropping the name
argument here. You want to use kwargs['name'] = kwargs.get('name', self.name)
or something like that (I suppose better yet would be kwargs.setdefault('name', self.name)
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, thank you! Now I am finally getting somewhere with this. Only remaining issues are with view()
and __getitem__()
using slices - which you already commented on on the other PR.
@ARF1 Tracking down bugs like this can be unforgiving, especially when it takes you on a deep dive through pandas internals. Thanks for the hard work! |
Closing in favour of and rebasing changesets on #9977. |
WIP on making RangeIndex (#9977) the default index