Skip to content

Commit 147f4eb

Browse files
committed
flake8
1 parent 2baa64e commit 147f4eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/categorical.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
is_datetimelike,
2424
is_categorical,
2525
is_categorical_dtype,
26-
is_integer_dtype, is_bool,
26+
is_integer_dtype,
2727
is_list_like, is_sequence,
2828
is_scalar)
2929
from pandas.core.common import is_null_slice
@@ -330,7 +330,8 @@ def __init__(self, values, categories=None, ordered=False, fastpath=False):
330330

331331
# TODO: check for old style usage. These warnings should be removes
332332
# after 0.18/ in 2016
333-
if is_integer_dtype(values) and not is_integer_dtype(dtype.categories):
333+
if (is_integer_dtype(values) and
334+
not is_integer_dtype(dtype.categories)):
334335
warn("Values and categories have different dtypes. Did you "
335336
"mean to use\n'Categorical.from_codes(codes, "
336337
"categories)'?", RuntimeWarning, stacklevel=2)

0 commit comments

Comments
 (0)