-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Partialy fix issue #23334 - isort pandas/core/dtypes directory #23336
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
Changes from 11 commits
1ee7d42
f1160c1
caf3a44
7615a7a
c7466ba
0473017
30b6f95
087f348
f88cc15
ff2eaa5
8172b67
a74f2b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,15 @@ | ||
# flake8: noqa | ||
|
||
from .common import (pandas_dtype, | ||
is_dtype_equal, | ||
is_extension_type, | ||
|
||
# categorical | ||
is_categorical, | ||
is_categorical_dtype, | ||
|
||
# interval | ||
is_interval, | ||
is_interval_dtype, | ||
|
||
# datetimelike | ||
is_datetimetz, | ||
is_datetime64_dtype, | ||
is_datetime64tz_dtype, | ||
is_datetime64_any_dtype, | ||
is_datetime64_ns_dtype, | ||
is_timedelta64_dtype, | ||
is_timedelta64_ns_dtype, | ||
is_period, | ||
is_period_dtype, | ||
|
||
# string-like | ||
is_string_dtype, | ||
is_object_dtype, | ||
|
||
# sparse | ||
is_sparse, | ||
|
||
# numeric types | ||
is_scalar, | ||
is_sparse, | ||
is_bool, | ||
is_integer, | ||
is_float, | ||
is_complex, | ||
is_number, | ||
is_integer_dtype, | ||
is_int64_dtype, | ||
is_numeric_dtype, | ||
is_float_dtype, | ||
is_bool_dtype, | ||
is_complex_dtype, | ||
is_signed_integer_dtype, | ||
is_unsigned_integer_dtype, | ||
|
||
# like | ||
is_re, | ||
is_re_compilable, | ||
is_dict_like, | ||
is_iterator, | ||
is_file_like, | ||
is_array_like, | ||
is_list_like, | ||
is_hashable, | ||
is_named_tuple) | ||
# categorical; interval; datetimelike; string-like; sparse; numeric types; like | ||
from .common import ( | ||
is_array_like, is_bool, is_bool_dtype, is_categorical, | ||
is_categorical_dtype, is_complex, is_complex_dtype, | ||
is_datetime64_any_dtype, is_datetime64_dtype, is_datetime64_ns_dtype, | ||
is_datetime64tz_dtype, is_datetimetz, is_dict_like, is_dtype_equal, | ||
is_extension_type, is_file_like, is_float, is_float_dtype, is_hashable, | ||
is_int64_dtype, is_integer, is_integer_dtype, is_interval, | ||
is_interval_dtype, is_iterator, is_list_like, is_named_tuple, is_number, | ||
is_numeric_dtype, is_object_dtype, is_period, is_period_dtype, is_re, | ||
is_re_compilable, is_scalar, is_signed_integer_dtype, is_sparse, | ||
is_string_dtype, is_timedelta64_dtype, is_timedelta64_ns_dtype, | ||
is_unsigned_integer_dtype, pandas_dtype) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
""" | ||
missing types & inference | ||
""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accidental, will fix. When I had errors, I copy pasted imports from master and reran isort to attempt to fix the errors and the spacing on some of the comments messed up. |
||
missing types & inference | ||
""" | ||
import numpy as np | ||
|
||
from pandas._libs import lib, missing as libmissing | ||
from pandas._libs.tslibs import NaT, iNaT | ||
from .generic import (ABCMultiIndex, ABCSeries, | ||
ABCIndexClass, ABCGeneric, | ||
ABCExtensionArray) | ||
from .common import (is_string_dtype, is_datetimelike, | ||
is_datetimelike_v_numeric, is_float_dtype, | ||
is_datetime64_dtype, is_datetime64tz_dtype, | ||
is_timedelta64_dtype, | ||
is_period_dtype, | ||
is_complex_dtype, | ||
is_string_like_dtype, is_bool_dtype, | ||
is_integer_dtype, is_dtype_equal, | ||
is_extension_array_dtype, | ||
needs_i8_conversion, ensure_object, | ||
pandas_dtype, | ||
is_scalar, | ||
is_object_dtype, | ||
is_integer, | ||
_TD_DTYPE, | ||
_NS_DTYPE) | ||
|
||
from .common import ( | ||
_NS_DTYPE, _TD_DTYPE, ensure_object, is_bool_dtype, is_complex_dtype, | ||
is_datetime64_dtype, is_datetime64tz_dtype, is_datetimelike, | ||
is_datetimelike_v_numeric, is_dtype_equal, is_extension_array_dtype, | ||
is_float_dtype, is_integer, is_integer_dtype, is_object_dtype, | ||
is_period_dtype, is_scalar, is_string_dtype, is_string_like_dtype, | ||
is_timedelta64_dtype, needs_i8_conversion, pandas_dtype) | ||
from .generic import ( | ||
ABCExtensionArray, ABCGeneric, ABCIndexClass, ABCMultiIndex, ABCSeries) | ||
from .inference import is_list_like | ||
|
||
isposinf_scalar = libmissing.isposinf_scalar | ||
|
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 am not sure of the value of this comment
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.
This comment was generated by isort, will delete.