Skip to content

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

Merged
merged 5 commits into from
Nov 23, 2018
Merged

CLN: Isort core/*.py and core/indexes/ #23764

merged 5 commits into from
Nov 23, 2018

Conversation

alimcmaster1
Copy link
Member

@pep8speaks
Copy link

Hello @alimcmaster1! Thanks for submitting the PR.

@WillAyd WillAyd added the Clean label Nov 18, 2018
is_dict_like, is_extension_type, is_list_like, is_sequence)
from pandas.core.dtypes.generic import ABCSeries

from pandas import compat
Copy link
Member

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.

Copy link
Member Author

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 )

import pandas.core.missing as missing
import pandas.core.nanops as nanops
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated, thanks

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
Copy link
Member

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”

Copy link
Member Author

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
Copy link

codecov bot commented Nov 19, 2018

Codecov Report

Merging #23764 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#multiple 90.68% <100%> (-0.01%) ⬇️
#single 42.31% <98.97%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/indexes/accessors.py 91.08% <100%> (ø) ⬆️
pandas/core/indexes/multi.py 95.49% <100%> (-0.01%) ⬇️
pandas/core/base.py 97.6% <100%> (-0.01%) ⬇️
pandas/core/resample.py 96.99% <100%> (ø) ⬆️
pandas/core/config.py 87.17% <100%> (ø) ⬆️
pandas/core/ops.py 94.27% <100%> (ø) ⬆️
pandas/core/indexes/period.py 93.07% <100%> (ø) ⬆️
pandas/core/algorithms.py 95.11% <100%> (ø) ⬆️
pandas/core/indexes/category.py 97.87% <100%> (ø) ⬆️
pandas/core/indexes/numeric.py 97.32% <100%> (ø) ⬆️
... and 15 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 e405a10...4fd7150. Read the comment docs.

@alimcmaster1
Copy link
Member Author

@jbrockmendel thanks for the review updated as per your comments

@jreback
Copy link
Contributor

jreback commented Nov 20, 2018

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,
Copy link
Member Author

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

@alimcmaster1
Copy link
Member Author

alimcmaster1 commented Nov 22, 2018

merged master and green - cc. @jreback

@jreback jreback added this to the 0.24.0 milestone Nov 23, 2018
@jreback jreback added the Code Style Code style, linting, code_checks label Nov 23, 2018
@jreback jreback merged commit 8edf972 into pandas-dev:master Nov 23, 2018
@jreback
Copy link
Contributor

jreback commented Nov 23, 2018

thanks @alimcmaster1

Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants