Skip to content

Commit fb8d143

Browse files
committed
BUG: Fix replacing in string series with NA (pandas-dev#32621)
1 parent e98c7c9 commit fb8d143

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/internals/managers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,8 +1935,7 @@ def _compare_or_regex_search(a, b, regex=False):
19351935

19361936
is_a_array = isinstance(a, np.ndarray)
19371937
is_b_array = isinstance(b, np.ndarray)
1938-
1939-
def _get_nan_value(x):
1938+
19401939
# GH#32621 replace all pd.NAs to avoid failure of element-wise comparison
19411940
mask = isna(a) | isna(b)
19421941
if is_a_array:

0 commit comments

Comments
 (0)