Skip to content

Commit f08bfd1

Browse files
KhemkaranKhemkaran
authored andcommitted
added docs to accessor.py/match()
1 parent bf6da3b commit f08bfd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ def match(self, pat: str, case: bool = True, flags: int = 0, na=lib.no_default):
13741374
Parameters
13751375
----------
13761376
pat : str
1377-
Character sequence.
1377+
Character sequence or regular expression.
13781378
case : bool, default True
13791379
If True, case sensitive.
13801380
flags : int, default 0 (no flags)

pandas/tests/strings/test_find_replace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ def test_match_case_kwarg(any_string_dtype):
819819

820820

821821
def test_match_compiled_regex(any_string_dtype):
822+
# GH#61952
822823
values = Series(["ab", "AB", "abc", "ABC"], dtype=any_string_dtype)
823824
result = values.str.match(re.compile(r"ab"), case=False)
824825
expected_dtype = (
@@ -898,6 +899,7 @@ def test_fullmatch_case_kwarg(any_string_dtype):
898899

899900

900901
def test_fullmatch_compiled_regex(any_string_dtype):
902+
# GH#61952
901903
values = Series(["ab", "AB", "abc", "ABC"], dtype=any_string_dtype)
902904
result = values.str.fullmatch(re.compile(r"ab"), case=False)
903905
expected_dtype = (

0 commit comments

Comments
 (0)