Skip to content

Commit 2ca3721

Browse files
fix test
1 parent e913413 commit 2ca3721

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
@@ -2530,8 +2530,8 @@ def test_match_findall_flags(self):
25302530

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

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

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

0 commit comments

Comments
 (0)