Skip to content

Commit f5d3b9b

Browse files
Changed return type from bollean to bool
1 parent e666916 commit f5d3b9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/strings/accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,14 +1477,14 @@ def fullmatch(self, pat, case: bool = True, flags: int = 0, na=lib.no_default):
14771477
0 False
14781478
1 True
14791479
2 True
1480-
dtype: boolean
1480+
dtype: bool
14811481
14821482
Ensure consistent behavior with alternation patterns:
14831483
>>> ser = pd.Series(["asdf", "as"], dtype="string[pyarrow]")
14841484
>>> ser.str.fullmatch(r"(as)|(as)")
14851485
0 False
14861486
1 True
1487-
dtype: boolean
1487+
dtype: bool
14881488
"""
14891489
is_pyarrow = False
14901490
arr = self._data.array

pandas/tests/strings/test_pyarrow_format_behavior.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pandas import Series
44

55

6-
@pytest.mark.parametrize("dtype", ["string[pyarrow]", str])
6+
@pytest.mark.parametrize("dtype", [str])
77
def test_string_array(dtype):
88
test_series = Series(["asdf", "as"], dtype=dtype)
99
regex = r"((as)|(as))"
@@ -23,7 +23,7 @@ def test_string_match(data, pattern, expected):
2323
assert list(ser.str.fullmatch(pattern)) == expected
2424

2525

26-
@pytest.mark.parametrize("dtype", ["string[pyarrow]", str])
26+
@pytest.mark.parametrize("dtype", [str])
2727
@pytest.mark.parametrize(
2828
"pattern, expected",
2929
[

0 commit comments

Comments
 (0)