Skip to content

CLN: reorganize index.py, test_index.py #12124

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 8 commits into from

Conversation

wesm
Copy link
Member

@wesm wesm commented Jan 24, 2016

Split apart these two very large modules and created a new pandas.indexes subpackage. It would be nice to move all the index class code from pandas.tseries there in a followup patch.

@wesm wesm changed the title WIP: reorganizing Index class code CLN: reorganize index.py, test_index.py Jan 24, 2016
@wesm
Copy link
Member Author

wesm commented Jan 24, 2016

Once the build passes, best not to let this patch linger (to avoid rebase conflicts). @jreback I don't think I broke anything but let me know if any concerns that I can look into

@jorisvandenbossche
Copy link
Member

The python 2 tests are still failing, I think you missed a from pandas.compat import range import in the range.py file

@wesm
Copy link
Member Author

wesm commented Jan 24, 2016

Thanks, think I got it now. Will check the build in an hour or two here

@wesm
Copy link
Member Author

wesm commented Jan 24, 2016

@jorisvandenbossche @jreback merge when ready. thank you

@jreback jreback added the Clean label Jan 24, 2016
@jreback jreback added this to the 0.18.0 milestone Jan 24, 2016
InvalidIndexError)
from .category import CategoricalIndex # noqa
from .multi import MultiIndex # noqa
from .numeric import NumericIndex, Float64Index, Int64Index # noqa
Copy link
Contributor

Choose a reason for hiding this comment

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

the relative imports are not consistent with the rest of the import methodology. Ok, but should define when relative imports are ok.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll make them absolute

@wesm
Copy link
Member Author

wesm commented Jan 24, 2016

OK, cleaned up things per your comments.

@jreback
Copy link
Contributor

jreback commented Jan 24, 2016

lgtm. ping when green.

@wesm
Copy link
Member Author

wesm commented Jan 24, 2016

@jreback we are good to go

@jreback jreback closed this in 49c0023 Jan 24, 2016
@jreback
Copy link
Contributor

jreback commented Jan 24, 2016

boo ya! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants