Skip to content

CLN: cleaning core/common.py #12804

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 10 commits into from
Closed

CLN: cleaning core/common.py #12804

wants to merge 10 commits into from

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Apr 5, 2016

partial on #12503

  • create pandas/types
  • moved some dtype to pandas/types
  • move some missing value utils to pandas/core/missing
  • move .take and .diff to core/algorithms
  • create formats with core/formats,style moved and printing.py (form core/common.py)
  • removed some non-used functions

@jreback jreback added the Clean label Apr 5, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 5, 2016
@jreback jreback force-pushed the types branch 2 times, most recently from 65252fe to 043f24c Compare April 5, 2016 22:04
@jreback jreback mentioned this pull request Apr 5, 2016
13 tasks
@jreback jreback force-pushed the types branch 5 times, most recently from 8e43bfc to 9eab970 Compare April 6, 2016 01:05
@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

cc @wesm

still more to do, but this is a start.

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

@shoyer @jorisvandenbossche @sinhrks @TomAugspurger

any comments. don't want to leave this out too long as it touches lots of things.

@TomAugspurger
Copy link
Contributor

Not objections to your description.

Not a big deal, but does formatting/ make more sense than formats/?

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

its slightly longer, but no big deal.

@shoyer
Copy link
Member

shoyer commented Apr 6, 2016

assuming you're just moving stuff around, this seems sane to me

@wesm
Copy link
Member

wesm commented Apr 6, 2016

I'll look later this AM (pacific time)

_multiprocess_can_split_ = True


class TestABCClasses(tm.TestCase):
Copy link
Member

Choose a reason for hiding this comment

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

Put these tests instead in pandas/tests/types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@wesm
Copy link
Member

wesm commented Apr 6, 2016

This all looks fine to me.

Aside: I'm on vacation most of this month but planning to spend some time in May / June / July on refactoring to look toward retooling DataFrame internals (it would be nice to plot a course to removing the BlockManager, deprecating Panel, and some of the other under-the-hood internals work we've been discussing). In the meantime, anything that can be done to get organized and compartmentalize non-user code that will be affected will help this proceed more quickly. I think this patch helps us along this path.

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

np on schedule. will be a bit more internal refactoring soon.

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

@TomAugspurger do you feel strongly on the formats -> formatting?

@TomAugspurger
Copy link
Contributor

Not at all, especially since this is all internal and not user facing.

@jreback jreback closed this in 0632168 Apr 6, 2016
@gfyoung
Copy link
Member

gfyoung commented Apr 6, 2016

@jreback : Are you missing something in setup.py? When I try installing the master branch, the formats folder does not get installed, leading to the error ImportError: No module named formats.printing

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

I pushed a change.

though I installed fine from a fresh clone (this had to do with package setup)

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

@gfyoung
Copy link
Member

gfyoung commented Apr 6, 2016

@jreback : Indeed, I did, and I'm happy to say that with your most recent commit, everything installs just fine now! Thanks!

@jreback
Copy link
Contributor Author

jreback commented Apr 6, 2016

great not sure why our install test on Travis didn't fail
but I guess it's not actually testing the built version but just creating it

in any event appveyor catches it because of the way it builds (it's a full conda build) not just an inplace build

@jreback
Copy link
Contributor Author

jreback commented Apr 7, 2016

@TomAugspurger I think the doc build broke: lots of Styler warnings now. https://travis-ci.org/pydata/pandas/jobs/121316764.

building locally so far so good though (not done yet)

@jorisvandenbossche
Copy link
Member

Yes, just wanted to mention the same. It's the same error again as before. I can't remember anymore what solved it before

@TomAugspurger
Copy link
Contributor

Mmm, I think it magically fixed itself last time. Will look later.

@jorisvandenbossche
Copy link
Member

The .. currentmodule:: pandas.core.style in api.rst should probably updated?

@jreback
Copy link
Contributor Author

jreback commented Apr 7, 2016

yep, just pushed it

@jreback
Copy link
Contributor Author

jreback commented Apr 7, 2016

8250d7c

@jreback
Copy link
Contributor Author

jreback commented Apr 7, 2016

ok, this now built ok for me locally.

Still these but IIRC they were there before

None:None: WARNING: toctree contains reference to nonexisting document u'generated/template:'

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.

6 participants