Skip to content

Commit d7c8ae7

Browse files
authored
Fix formatting in extractall example outputs (#40354)
1 parent 1f5e358 commit d7c8ae7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/strings/accessor.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ def extractall(self, pat, flags=0):
23722372
0
23732373
match
23742374
A 0 1
2375-
1 2
2375+
1 2
23762376
B 0 1
23772377
23782378
Capture group names are used for column names of the result.
@@ -2381,7 +2381,7 @@ def extractall(self, pat, flags=0):
23812381
digit
23822382
match
23832383
A 0 1
2384-
1 2
2384+
1 2
23852385
B 0 1
23862386
23872387
A pattern with two groups will return a DataFrame with two columns.
@@ -2390,7 +2390,7 @@ def extractall(self, pat, flags=0):
23902390
letter digit
23912391
match
23922392
A 0 a 1
2393-
1 a 2
2393+
1 a 2
23942394
B 0 b 1
23952395
23962396
Optional groups that do not match are NaN in the result.
@@ -2399,7 +2399,7 @@ def extractall(self, pat, flags=0):
23992399
letter digit
24002400
match
24012401
A 0 a 1
2402-
1 a 2
2402+
1 a 2
24032403
B 0 b 1
24042404
C 0 NaN 1
24052405
"""

0 commit comments

Comments
 (0)