Skip to content

Commit 87446c3

Browse files
fix test
1 parent 0788de2 commit 87446c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_strings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2585,8 +2585,8 @@ def test_match_findall_flags(self):
25852585

25862586
pat = r'([A-Z0-9._%+-]+)@([A-Z0-9.-]+)\.([A-Z]{2,4})'
25872587

2588-
result = data.str.extract(pat, flags=re.IGNORECASE)
2589-
self.assertEqual(result[0], ('dave', 'google', 'com'))
2588+
result = data.str.extract(pat, flags=re.IGNORECASE, expand=True)
2589+
self.assertEqual(result.iloc[0].tolist(), ['dave', 'google', 'com'])
25902590

25912591
result = data.str.match(pat, flags=re.IGNORECASE)
25922592
self.assertEqual(result[0], True)

0 commit comments

Comments
 (0)