-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
STY: de-privatize names imported across modules #36178
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, 2 comments
asv_bench/benchmarks/sparse.py
Outdated
@@ -71,7 +71,7 @@ def setup(self): | |||
s.index = MultiIndex.from_product([range(10)] * 4) | |||
self.ss = s.astype("Sparse") | |||
|
|||
def time_sparse_series_to_coo(self): | |||
def timesparse_series_to_coo(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops, will update
pandas/core/index.py
Outdated
@@ -19,7 +19,7 @@ | |||
ensure_index_from_sequences, | |||
get_objs_combined_axis, | |||
) | |||
from pandas.core.indexes.multi import _sparsify # noqa:F401 | |||
from pandas.core.indexes.multi import sparsify_labels as _sparsify # noqa:F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make the edit inside this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you're asking for here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use the as import
just update to use sparsify_labels instead of _sparsify
updated+green |
@@ -19,7 +19,7 @@ | |||
ensure_index_from_sequences, | |||
get_objs_combined_axis, | |||
) | |||
from pandas.core.indexes.multi import _sparsify # noqa:F401 | |||
from pandas.core.indexes.multi import sparsify_labels # noqa:F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually i think you can just remove this line entirely (its not used inside)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i mean, nothing is used in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, then wonder if we need this at all here (and maybe even re-evaluate all of these exports); but let's do later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the idea is to remove the file in 2.0
getting close to the end of this and enabling a code_check