|
16 | 16 | from pandas.core.dtypes.common import ( |
17 | 17 | is_array_like, |
18 | 18 | is_unsigned_integer_dtype, is_signed_integer_dtype, |
19 | | - is_integer_dtype, is_complex_dtype, |
| 19 | + is_integer, is_integer_dtype, is_complex_dtype, |
20 | 20 | is_object_dtype, |
21 | 21 | is_extension_array_dtype, |
22 | 22 | is_categorical_dtype, is_sparse, |
23 | 23 | is_period_dtype, |
24 | | - is_numeric_dtype, is_float_dtype, |
| 24 | + is_numeric_dtype, is_float, is_float_dtype, |
25 | 25 | is_bool_dtype, needs_i8_conversion, |
26 | 26 | is_datetimetz, is_datetime_or_timedelta_dtype, |
27 | 27 | is_datetime64_any_dtype, is_datetime64tz_dtype, |
@@ -432,16 +432,13 @@ def isin(comps, values): |
432 | 432 | comps_types = set(type(v) for v in comps) |
433 | 433 | values_types = set(type(v) for v in values) |
434 | 434 |
|
435 | | - is_int = lambda x: ((x == np.int64) or (x == int)) |
436 | | - is_float = lambda x: ((x == np.float64) or (x == float)) |
437 | | - |
438 | 435 | int_flg = False |
439 | 436 | float_flg = False |
440 | 437 |
|
441 | 438 | if len(comps_types) == len(values_types) == 1: |
442 | 439 | comps_types = comps_types.pop() |
443 | 440 | values_types = values_types.pop() |
444 | | - int_flg = (is_int(comps_types) and is_int(values_types)) |
| 441 | + int_flg = (is_integer(comps_types) and is_integer(values_types)) |
445 | 442 | float_flg = (is_float(comps_types) and is_float(values_types)) |
446 | 443 |
|
447 | 444 | # GH16012 |
|
0 commit comments