Skip to content
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

Remove unused cimports #17585

Merged
merged 8 commits into from
Sep 23, 2017
Merged

Remove unused cimports #17585

merged 8 commits into from
Sep 23, 2017

Conversation

jbrockmendel
Copy link
Member

This helps a little bit with the complexity of the libs interdependencies.

Make properties.pyx its own module, since we will end up needing it to be separate when tseries.offsets gets moved into cython.

Remove the long-defunct _libs/src/offsets.pyx.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@gfyoung gfyoung added Clean Internals Related to non-user accessible pandas implementation labels Sep 19, 2017
@jreback
Copy link
Contributor

jreback commented Sep 19, 2017

you are doing quite a lot of things here. specifically don't include the property changes here.

@jbrockmendel
Copy link
Member Author

properties separated out into #17590

@codecov
Copy link

codecov bot commented Sep 20, 2017

Codecov Report

Merging #17585 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17585      +/-   ##
==========================================
+ Coverage   91.19%    91.2%   +<.01%     
==========================================
  Files         163      163              
  Lines       49626    49625       -1     
==========================================
+ Hits        45258    45261       +3     
+ Misses       4368     4364       -4
Flag Coverage Δ
#multiple 88.99% <ø> (+0.02%) ⬆️
#single 40.19% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/plotting/_converter.py 63.23% <0%> (-0.16%) ⬇️
pandas/core/frame.py 97.77% <0%> (-0.1%) ⬇️
pandas/core/indexes/multi.py 96.9% <0%> (ø) ⬆️
pandas/plotting/_core.py 82.73% <0%> (+0.2%) ⬆️
pandas/plotting/_tools.py 79% <0%> (+6.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21a3800...764785e. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 20, 2017

Codecov Report

Merging #17585 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17585      +/-   ##
==========================================
+ Coverage   91.19%    91.2%   +<.01%     
==========================================
  Files         163      163              
  Lines       49652    49652              
==========================================
+ Hits        45282    45285       +3     
+ Misses       4370     4367       -3
Flag Coverage Δ
#multiple 88.99% <ø> (+0.02%) ⬆️
#single 40.18% <ø> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.77% <0%> (-0.1%) ⬇️
pandas/util/_decorators.py 78% <0%> (+12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1fe892...eaa48da. Read the comment docs.

@@ -67,6 +67,7 @@ import tslib
from tslib import NaT, Timestamp, Timedelta
import interval
from interval import Interval
from properties import AxisProperty, cache_readonly
Copy link
Contributor

Choose a reason for hiding this comment

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

are you adding these back for a reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like a rebase screwup. Will fix.


cdef int64_t us_in_day = conversion_factor(r_microsecond, r_day)

cdef class _Offset:
Copy link
Contributor

Choose a reason for hiding this comment

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

anything useful from this file?

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 looked through it and didn't find anything worth keeping. I've got a cython version of tseries.offsets in a branch that is a few PRs away from being ready to push upstream.

setup.py Outdated
@@ -476,6 +476,7 @@ def pxd(name):
libraries = ['m'] if not is_platform_windows() else []

ext_data = {
'_libs.properties': {'pyxfile': '_libs/properties', 'include': []},
Copy link
Contributor

Choose a reason for hiding this comment

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

duplicated

@jreback jreback added this to the 0.21.0 milestone Sep 23, 2017
@jreback jreback merged commit 87e2f54 into pandas-dev:master Sep 23, 2017
@jreback
Copy link
Contributor

jreback commented Sep 23, 2017

thanks!

@jbrockmendel jbrockmendel deleted the interdeps branch October 30, 2017 16:23
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants