|
22 | 22 | _is_unorderable_exception, ensure_platform_int, is_bool,
|
23 | 23 | is_categorical_dtype, is_datetime64_dtype, is_datetimelike, is_dict_like,
|
24 | 24 | is_extension_array_dtype, is_extension_type, is_hashable, is_integer,
|
25 |
| - is_iterator, is_list_like, is_scalar, is_string_like, is_timedelta64_dtype) |
| 25 | + is_iterator, is_list_like, is_scalar, is_sparse, is_string_like, is_timedelta64_dtype) |
26 | 26 | from pandas.core.dtypes.generic import (
|
27 | 27 | ABCDataFrame, ABCDatetimeArray, ABCDatetimeIndex, ABCSeries,
|
28 | 28 | ABCSparseArray, ABCSparseSeries)
|
@@ -2644,6 +2644,8 @@ def combine(self, other, func, fill_value=None):
|
2644 | 2644 |
|
2645 | 2645 | if is_categorical_dtype(self.values):
|
2646 | 2646 | pass
|
| 2647 | + elif is_bool(new_values[0]) and not is_sparse(self.values): |
| 2648 | + pass |
2647 | 2649 | elif is_extension_array_dtype(self.values):
|
2648 | 2650 | # The function can return something of any type, so check
|
2649 | 2651 | # if the type is compatible with the calling EA.
|
|
0 commit comments