-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
STYLE: Isort __init__ files #26749
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
STYLE: Isort __init__ files #26749
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
751bcc6
isort init files
alimcmaster1 9e8d463
pep8
alimcmaster1 c654d83
remove isort from deps
alimcmaster1 0c634f0
pep8
alimcmaster1 81c9c7e
ignore two files
alimcmaster1 9a3dcd8
Merge remote-tracking branch 'upstream/master' into mcmali-isort
alimcmaster1 89afa0b
Remove isort from deps
alimcmaster1 bb02970
Merge remote-tracking branch 'upstream/master' into mcmali-isort
alimcmaster1 6b797a2
isort files
alimcmaster1 cdfd78a
Merge remote-tracking branch 'upstream/master' into mcmali-isort
jorisvandenbossche e50c3fd
line at end of file
jorisvandenbossche d844d20
remove leftovers
jreback eaeb0a1
Merge branch 'master' into PR_TOOL_MERGE_PR_26749
jreback 4bb3a03
flake8
jreback 564b4d9
Merge branch 'master' into PR_TOOL_MERGE_PR_26749
jreback 3491280
actually fix the __init__
jreback 3bf08f8
flake8
jreback 58054ab
Merge branch 'master' into PR_TOOL_MERGE_PR_26749
jreback 0cdb2f0
revert some __init__
jreback File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# flake8: noqa | ||
|
||
from .tslibs import ( | ||
iNaT, NaT, NaTType, Timestamp, Timedelta, OutOfBoundsDatetime, Period) | ||
NaT, NaTType, OutOfBoundsDatetime, Period, Timedelta, Timestamp, iNaT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# flake8: noqa | ||
|
||
from .conversion import normalize_date, localize_pydatetime | ||
from .conversion import localize_pydatetime, normalize_date | ||
from .nattype import NaT, NaTType, iNaT, is_null_datetimelike | ||
from .np_datetime import OutOfBoundsDatetime | ||
from .period import Period, IncompatibleFrequency | ||
from .period import IncompatibleFrequency, Period | ||
from .timedeltas import Timedelta, delta_to_nanoseconds, ints_to_pytimedelta | ||
from .timestamps import Timestamp | ||
from .timedeltas import delta_to_nanoseconds, ints_to_pytimedelta, Timedelta | ||
from .tzconversion import tz_convert_single |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
""" public toolkit API """ | ||
from . import types, extensions # noqa | ||
from . import extensions, types # noqa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
"""Public API for extending pandas objects.""" | ||
from pandas.core.accessor import (register_dataframe_accessor, # noqa | ||
register_index_accessor, | ||
register_series_accessor) | ||
from pandas.core.algorithms import take # noqa | ||
from pandas.core.arrays import (ExtensionArray, # noqa | ||
ExtensionScalarOpsMixin) | ||
from pandas.core.dtypes.dtypes import ( # noqa | ||
ExtensionDtype, register_extension_dtype | ||
) | ||
from pandas.core.dtypes.dtypes import ( # noqa: F401 | ||
ExtensionDtype, register_extension_dtype) | ||
|
||
from pandas.core.accessor import ( # noqa: F401 | ||
register_index_accessor, register_series_accessor) | ||
from pandas.core.algorithms import take # noqa: F401 | ||
from pandas.core.arrays import ( # noqa: F401 | ||
ExtensionArray, ExtensionScalarOpsMixin) | ||
|
||
from pandas.core.accessor import ( # noqa: F401; noqa: F401 | ||
register_dataframe_accessor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
""" public toolkit API """ | ||
|
||
from pandas.core.dtypes.api import * # noqa | ||
from pandas.core.dtypes.dtypes import (CategoricalDtype, # noqa | ||
DatetimeTZDtype, | ||
PeriodDtype, | ||
IntervalDtype) | ||
from pandas.core.dtypes.concat import union_categoricals # noqa | ||
from pandas._libs.lib import infer_dtype # noqa | ||
from pandas._libs.lib import infer_dtype # noqa: F401 | ||
|
||
from pandas.core.dtypes.api import * # noqa: F403, F401 | ||
from pandas.core.dtypes.concat import union_categoricals # noqa: F401 | ||
from pandas.core.dtypes.dtypes import ( # noqa: F401 | ||
CategoricalDtype, DatetimeTZDtype, IntervalDtype, PeriodDtype) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
from .array_ import array # noqa | ||
from .base import (ExtensionArray, # noqa | ||
ExtensionOpsMixin, | ||
ExtensionScalarOpsMixin) | ||
from .categorical import Categorical # noqa | ||
from .datetimes import DatetimeArray # noqa | ||
from .interval import IntervalArray # noqa | ||
from .period import PeriodArray, period_array # noqa | ||
from .timedeltas import TimedeltaArray # noqa | ||
from .integer import ( # noqa | ||
IntegerArray, integer_array) | ||
from .sparse import SparseArray # noqa | ||
from .numpy_ import PandasArray, PandasDtype # noqa | ||
from .array_ import array # noqa: F401 | ||
from .base import ( # noqa: F401 | ||
ExtensionArray, ExtensionOpsMixin, ExtensionScalarOpsMixin) | ||
from .categorical import Categorical # noqa: F401 | ||
from .datetimes import DatetimeArray # noqa: F401 | ||
from .integer import IntegerArray, integer_array # noqa: F401 | ||
from .interval import IntervalArray # noqa: F401 | ||
from .numpy_ import PandasArray, PandasDtype # noqa: F401 | ||
from .period import PeriodArray, period_array # noqa: F401 | ||
from .sparse import SparseArray # noqa: F401 | ||
from .timedeltas import TimedeltaArray # noqa: F401 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
from .blocks import ( # noqa:F401 | ||
_block_shape, # io.pytables | ||
_safe_reshape, # io.packers | ||
make_block, # io.pytables, io.packers | ||
FloatBlock, IntBlock, ComplexBlock, BoolBlock, ObjectBlock, | ||
TimeDeltaBlock, DatetimeBlock, DatetimeTZBlock, | ||
CategoricalBlock, ExtensionBlock, Block) | ||
from .managers import ( # noqa:F401 | ||
BlockManager, SingleBlockManager, | ||
create_block_manager_from_arrays, create_block_manager_from_blocks, | ||
items_overlap_with_suffix, # reshape.merge | ||
concatenate_block_managers) # reshape.concat, reshape.merge | ||
from .blocks import ( # noqa: F401 | ||
Block, BoolBlock, CategoricalBlock, ComplexBlock, DatetimeBlock, | ||
DatetimeTZBlock, ExtensionBlock, FloatBlock, IntBlock, ObjectBlock, | ||
TimeDeltaBlock) | ||
from .managers import ( # noqa: F401 | ||
BlockManager, SingleBlockManager, create_block_manager_from_arrays, | ||
create_block_manager_from_blocks) | ||
|
||
from .blocks import _safe_reshape # noqa: F401; io.packers | ||
from .blocks import make_block # noqa: F401; io.pytables, io.packers | ||
from .managers import ( # noqa: F401; reshape.concat, reshape.merge | ||
concatenate_block_managers) | ||
from .managers import items_overlap_with_suffix # noqa: F401; reshape.merge | ||
|
||
from .blocks import _block_shape # noqa:F401; io.pytables | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from .array import DecimalArray, DecimalDtype, to_decimal, make_data | ||
|
||
from .array import DecimalArray, DecimalDtype, make_data, to_decimal | ||
|
||
__all__ = ['DecimalArray', 'DecimalDtype', 'to_decimal', 'make_data'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
from pandas.util._decorators import Appender, Substitution, cache_readonly # noqa | ||
from pandas.core.util.hashing import hash_pandas_object, hash_array # noqa | ||
from pandas.util._decorators import ( # noqa | ||
Appender, Substitution, cache_readonly) | ||
|
||
from pandas.core.util.hashing import hash_array, hash_pandas_object # noqa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
why would this be after the others? (and why don't you have .blocks all in one)