File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -614,9 +614,9 @@ def test_replace_with_empty_list(self):
614
614
result = df .replace ([], np .nan )
615
615
assert_frame_equal (result , expected )
616
616
# GH 19266
617
- with tm .assert_raises_regex (Exception , "cannot assign mismatch " ):
617
+ with tm .assert_raises_regex (Exception , "Cannot assign array " ):
618
618
df .replace ({np .nan : []})
619
- with tm .assert_raises_regex (Exception , "cannot assign mismatch " ):
619
+ with tm .assert_raises_regex (Exception , "Cannot assign array " ):
620
620
df .replace ({np .nan : ['dummy' , 'alt' ]})
621
621
622
622
def test_replace_series_dict (self ):
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ def test_replace_with_empty_list(self):
138
138
tm .assert_series_equal (result , expected )
139
139
140
140
# GH 19266
141
- with tm .assert_raises_regex (Exception , "cannot assign mismatch " ):
141
+ with tm .assert_raises_regex (Exception , "Cannot assign array " ):
142
142
s .replace ({np .nan : []})
143
- with tm .assert_raises_regex (Exception , "cannot assign mismatch " ):
143
+ with tm .assert_raises_regex (Exception , "Cannot assign array " ):
144
144
s .replace ({np .nan : ['dummy' , 'alt' ]})
145
145
146
146
def test_replace_mixed_types (self ):
You can’t perform that action at this time.
0 commit comments