Skip to content

Conversation

@mroeschke
Copy link
Member

@mroeschke mroeschke commented Oct 17, 2018

I am technically moving some public (non top level) helper functions and making them private, but I don't think it warrants a depreciation.

@pep8speaks
Copy link

Hello @mroeschke! Thanks for submitting the PR.

@codecov
Copy link

codecov bot commented Oct 17, 2018

Codecov Report

Merging #23208 into master will increase coverage by <.01%.
The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #23208      +/-   ##
==========================================
+ Coverage   92.19%    92.2%   +<.01%     
==========================================
  Files         169      169              
  Lines       50950    50943       -7     
==========================================
- Hits        46975    46972       -3     
+ Misses       3975     3971       -4
Flag Coverage Δ
#multiple 90.62% <90.47%> (ø) ⬆️
#single 42.27% <52.38%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/common.py 98.34% <ø> (+0.89%) ⬆️
pandas/core/generic.py 96.84% <ø> (+0.18%) ⬆️
pandas/core/indexes/api.py 99% <100%> (+0.08%) ⬆️
pandas/core/internals/blocks.py 92.9% <100%> (-0.01%) ⬇️
pandas/core/indexes/timedeltas.py 90.74% <100%> (-0.03%) ⬇️
pandas/core/frame.py 97.02% <75%> (-0.1%) ⬇️

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 b54e20b...0e1ceaa. Read the comment docs.

@jreback jreback added the Docs label Oct 18, 2018
@jreback jreback added this to the 0.24.0 milestone Oct 18, 2018
def _put_str(s, space):
return u'{s}'.format(s=s)[:space].ljust(space)


Copy link
Contributor

Choose a reason for hiding this comment

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

don't put this here, pandas/core/indexing.py is better or pandas/core/index/api.py

Copy link
Member Author

Choose a reason for hiding this comment

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

_get_info_slice is only used once in frame.py and nowhere else. I was thinking we might as well avoid the import.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, can you just inline it then where it is used (make it a local function) instead.

exclude_these.iloc[idx] = not any(map(f, exclude))

dtype_indexer = include_these & exclude_these
return self.loc[com.get_info_slice(self, dtype_indexer)]
Copy link
Contributor

Choose a reason for hiding this comment

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

just move the local function here

@jreback jreback merged commit c6ca378 into pandas-dev:master Oct 19, 2018
@jreback
Copy link
Contributor

jreback commented Oct 19, 2018

thanks!

@mroeschke mroeschke deleted the clean_todos branch October 19, 2018 16:52
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
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.

CLN: commented-out code in TimedeltaIndex._partial_td_slice

3 participants