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

Function test_findall

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

Source from the content-addressed store, hash-verified

1469
1470
1471def test_findall(any_string_dtype):
1472 ser = Series(["fooBAD__barBAD", np.nan, "foo", "BAD"], dtype=any_string_dtype)
1473 result = ser.str.findall("BAD[_]*")
1474 expected = Series([["BAD__", "BAD"], np.nan, [], ["BAD"]])
1475 expected = _convert_na_value(ser, expected)
1476 tm.assert_series_equal(result, expected)
1477
1478
1479def test_findall_mixed_object():

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
_convert_na_valueFunction · 0.90
findallMethod · 0.80

Tested by

no test coverage detected