Skip to content

[CLN] De-privatize commonly-used functions #21870

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
merged 17 commits into from
Jul 17, 2018
Merged

Conversation

jbrockmendel
Copy link
Member

Also updated numpy_helper to not use things from numpy's deprecated C API. This won't get rid of the warnings since cython still causes them, but it's still nice.

Not sure how to lint for this (or if we really want to), will see if google knows.

@gfyoung gfyoung added Internals Related to non-user accessible pandas implementation Clean labels Jul 12, 2018
@jreback jreback added this to the 0.24.0 milestone Jul 12, 2018
@jreback
Copy link
Contributor

jreback commented Jul 12, 2018

looks ok, something failing.

@jbrockmendel
Copy link
Member Author

Messed up whitespace in rebasing, should be fixed now.

@codecov
Copy link

codecov bot commented Jul 12, 2018

Codecov Report

Merging #21870 into master will increase coverage by <.01%.
The diff coverage is 97.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #21870      +/-   ##
==========================================
+ Coverage   91.96%   91.96%   +<.01%     
==========================================
  Files         166      166              
  Lines       50323    50329       +6     
==========================================
+ Hits        46281    46287       +6     
  Misses       4042     4042
Flag Coverage Δ
#multiple 90.36% <95.95%> (ø) ⬆️
#single 42.23% <51.1%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/indexes/timedeltas.py 91.53% <ø> (ø) ⬆️
pandas/core/series.py 94.11% <100%> (ø) ⬆️
pandas/core/indexes/category.py 97.28% <100%> (ø) ⬆️
pandas/core/dtypes/missing.py 93.56% <100%> (ø) ⬆️
pandas/io/formats/format.py 98.24% <100%> (ø) ⬆️
pandas/core/groupby/grouper.py 98.16% <100%> (ø) ⬆️
pandas/core/indexes/base.py 96.35% <100%> (ø) ⬆️
pandas/core/indexes/range.py 95.7% <100%> (ø) ⬆️
pandas/core/groupby/ops.py 96.35% <100%> (ø) ⬆️
pandas/core/sparse/series.py 95.22% <100%> (+0.01%) ⬆️
... and 36 more

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 272bbdc...9866f8f. Read the comment docs.

@jbrockmendel
Copy link
Member Author

CI failure was a ResourceWarning. Had to edit something to re-push, so de-privatized _ensure_categorical.

@jbrockmendel
Copy link
Member Author

ping. I'd like to get this out of the way before inevitable merge conflicts arise.

@jreback
Copy link
Contributor

jreback commented Jul 14, 2018

ahh i merged in a funny order, can you rebase

@jbrockmendel
Copy link
Member Author

Done

@@ -120,7 +120,7 @@ def is_bool_indexer(key):
return False


def _default_index(n):
def default_index(n):
Copy link
Contributor

Choose a reason for hiding this comment

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

this entire module, is technically public, though we have a mix of public/private here anyway, so have to be careful about changing public functions here (obviously this is private -> public).

Copy link
Contributor

Choose a reason for hiding this comment

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

let' move this to pandas.index.base , ok to call it default_index

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@jreback jreback merged commit 537b65c into pandas-dev:master Jul 17, 2018
@jreback
Copy link
Contributor

jreback commented Jul 17, 2018

thanks @jbrockmendel !

aeltanawy pushed a commit to aeltanawy/pandas that referenced this pull request Jul 20, 2018
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
@jbrockmendel jbrockmendel deleted the priv3 branch April 5, 2020 17:41
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