From f35349992b3b7a1e3e9dd77ca3dfe18235a8f78b Mon Sep 17 00:00:00 2001 From: Brian Hulette Date: Wed, 10 Mar 2021 09:11:43 -0800 Subject: [PATCH] Fix formatting in extractall example outputs --- pandas/core/strings/accessor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 7d6a2bf1d776d..4195b011b6cfb 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -2350,7 +2350,7 @@ def extractall(self, pat, flags=0): 0 match A 0 1 - 1 2 + 1 2 B 0 1 Capture group names are used for column names of the result. @@ -2359,7 +2359,7 @@ def extractall(self, pat, flags=0): digit match A 0 1 - 1 2 + 1 2 B 0 1 A pattern with two groups will return a DataFrame with two columns. @@ -2368,7 +2368,7 @@ def extractall(self, pat, flags=0): letter digit match A 0 a 1 - 1 a 2 + 1 a 2 B 0 b 1 Optional groups that do not match are NaN in the result. @@ -2377,7 +2377,7 @@ def extractall(self, pat, flags=0): letter digit match A 0 a 1 - 1 a 2 + 1 a 2 B 0 b 1 C 0 NaN 1 """