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
use _default_index() in pandas.core.frame.extract_index()
  • Loading branch information
ARF committed Apr 27, 2015
commit b2d11bcf52b560d889db0c7113566a598164acad
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4826,7 +4826,7 @@ def extract_index(data):
% (lengths[0], len(index)))
raise ValueError(msg)
else:
index = Index(np.arange(lengths[0]))
index = _default_index(lengths[0])

return _ensure_index(index)

Expand Down