Skip to content

CLN: Remove redundant initialization from Int64Index and Float64Index constructor #5117

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

Merged

Conversation

jtratner
Copy link
Contributor

@jtratner jtratner commented Oct 5, 2013

Int64Index repeated itself and actually reconstructed an ndarray twice when passed in data was an iterable. This simplifies it down but does not actually change any behavior. (you'll see that there was basically exactly the same code twice)

Int64Index had duplicate code under a branch plus both were looking for
scalar data errors handled in `_coerce_to_ndarray` anyways.
@jreback
Copy link
Contributor

jreback commented Oct 5, 2013

this looks ok

@jtratner
Copy link
Contributor Author

jtratner commented Oct 5, 2013

@jreback changes Float64Index too - okay?

@jreback
Copy link
Contributor

jreback commented Oct 5, 2013

prob was the same issue

jtratner added a commit that referenced this pull request Oct 5, 2013
CLN: Remove redundant initialization from Int64Index and Float64Index constructor
@jtratner jtratner merged commit 0a71f7a into pandas-dev:master Oct 5, 2013
@jtratner jtratner deleted the cleanup-int64index-constructor branch October 5, 2013 19:43
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