@@ -1431,8 +1431,10 @@ def fullmatch(self, pat, case: bool = True, flags: int = 0, na=lib.no_default):
1431
1431
Determine if each string entirely matches a regular expression.
1432
1432
1433
1433
Checks if each string in the Series or Index fully matches the
1434
- specified regular expression pattern. This function is useful when the
1435
- requirement is for an entire string to conform to a pattern, such as
1434
+ specified regular expression pattern.
1435
+ This function is useful when the
1436
+ requirement is for an entire string to conform
1437
+ to a pattern, such as
1436
1438
validating formats like phone numbers or email addresses.
1437
1439
1438
1440
Parameters
@@ -1458,21 +1460,23 @@ def fullmatch(self, pat, case: bool = True, flags: int = 0, na=lib.no_default):
1458
1460
1459
1461
See Also
1460
1462
--------
1461
- match : Similar, but also returns `True` when only a *prefix* of the string
1463
+ match : Similar, but also returns `True`
1464
+ when only a *prefix* of the string
1462
1465
matches the regular expression.
1463
1466
extract : Extract matched groups.
1464
1467
1465
1468
Notes
1466
1469
-----
1467
1470
This method enforces consistent behavior between Python's string dtype
1468
1471
and PyArrow-backed string arrays when using regular expressions
1469
- containing alternation (|). For regex patterns with alternation operators,
1470
- the method ensures proper grouping by wrapping the pattern in parentheses
1472
+ containing alternation (|). For regex
1473
+ patterns with alternation operators,
1474
+ the method ensures proper grouping by
1475
+ wrapping the pattern in parentheses
1471
1476
when using PyArrow-backed string arrays.
1472
1477
1473
1478
Examples
1474
1479
--------
1475
- >>> import pandas as pd
1476
1480
>>> s = pd.Series(["foo", "bar", "foobar", ""])
1477
1481
>>> s.str.fullmatch("foo")
1478
1482
0 True
@@ -2675,7 +2679,7 @@ def translate(self, table):
2675
2679
2676
2680
@forbid_nonstring_types (["bytes" ])
2677
2681
def count (self , pat , flags : int = 0 ):
2678
- r """
2682
+ """
2679
2683
Count occurrences of pattern in each string of the Series/Index.
2680
2684
2681
2685
This function is used to count the number of times a particular regex
0 commit comments