Skip to content

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

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
fix: RangeIndex._shallow_copy()
  • Loading branch information
ARF committed May 1, 2015
commit 1a142748db820eeea5040f819ada0b3e0969410b
4 changes: 2 additions & 2 deletions pandas/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3440,8 +3440,8 @@ def _shallow_copy(self, values=None, **kwargs):
return RangeIndex(self.start, self.stop, self.step,
name=self.name, fastpath=True)
else:
name = kwargs.get('name', self.name)
return self._int64index._shallow_copy(values, **kwargs)
name = kwargs.pop('name', self.name)
return self._int64index._shallow_copy(values, name=name, **kwargs)

def copy(self, names=None, name=None, dtype=None, deep=False):
"""
Expand Down