-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Isort core/*.py and core/indexes/ #23764
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
Hello @alimcmaster1! Thanks for submitting the PR.
|
pandas/core/apply.py
Outdated
is_dict_like, is_extension_type, is_list_like, is_sequence) | ||
from pandas.core.dtypes.generic import ABCSeries | ||
|
||
from pandas import compat |
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 this “import pandas.compat as compat”? That will group it with the appropriate level of dependencies. Same in other files if it comes up.
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.
Thanks for this ~11 files in this PR. ( Will make this change in my other PR too )
pandas/core/generic.py
Outdated
import pandas.core.missing as missing | ||
import pandas.core.nanops as nanops |
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 put this in the same line as “from pandas.core import config”? Dittto “missing” one line up
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.
Updated, thanks
pandas/core/indexes/api.py
Outdated
import pandas.core.common as com | ||
from pandas.core.indexes.base import ( | ||
Index, _new_Index, ensure_index, ensure_index_from_sequences) | ||
from pandas.core.indexes.base import InvalidIndexError # noqa |
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.
Her and elsewhere can you make the “noqa” specific? I think it’s “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.
Sure makes sense! Thanks
Codecov Report
@@ Coverage Diff @@
## master #23764 +/- ##
==========================================
- Coverage 92.28% 92.28% -0.01%
==========================================
Files 161 161
Lines 51500 51497 -3
==========================================
- Hits 47528 47525 -3
Misses 3972 3972
Continue to review full report at Codecov.
|
@jbrockmendel thanks for the review updated as per your comments |
can you merge master. ping on green. |
pandas/core/indexing.py, | ||
pandas/core/apply.py, | ||
pandas/core/generic.py, | ||
pandas/core/sorting.py, | ||
pandas/core/frame.py, |
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.
Sorting frame.py seems to cause a few problems will address this in separate PR
merged master and green - cc. @jreback |
thanks @alimcmaster1 |
git diff upstream/master -u -- "*.py" | flake8 --diff