MCPcopy
hub / github.com/pandas-dev/pandas / test_fullmatch_na_kwarg

Function test_fullmatch_na_kwarg

pandas/tests/strings/test_find_replace.py:1316–1325  ·  view source on GitHub ↗
(any_string_dtype)

Source from the content-addressed store, hash-verified

1314
1315
1316def test_fullmatch_na_kwarg(any_string_dtype):
1317 ser = Series(
1318 ["fooBAD__barBAD", "BAD_BADleroybrown", np.nan, "foo"], dtype=any_string_dtype
1319 )
1320 result = ser.str.fullmatch(".*BAD[_]+.*BAD", na=False)
1321 expected_dtype = (
1322 np.bool_ if is_object_or_nan_string_dtype(any_string_dtype) else "boolean"
1323 )
1324 expected = Series([True, False, False, False], dtype=expected_dtype)
1325 tm.assert_series_equal(result, expected)
1326
1327
1328def test_fullmatch_case_kwarg(any_string_dtype):

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
fullmatchMethod · 0.80

Tested by

no test coverage detected