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

Method _str_findall

pandas/core/arrays/arrow/array.py:2812–2816  ·  view source on GitHub ↗
(self, pat: str, flags: int = 0)

Source from the content-addressed store, hash-verified

2810 return type(self)(pc.struct_field(result, [0]))
2811
2812 def _str_findall(self, pat: str, flags: int = 0) -> Self:
2813 regex = re.compile(pat, flags=flags)
2814 predicate = lambda val: regex.findall(val)
2815 result = self._apply_elementwise(predicate)
2816 return self._from_pyarrow_array(pa.chunked_array(result))
2817
2818 def _str_get_dummies(self, sep: str = "|", dtype: NpDtype | None = None):
2819 if dtype is None:

Callers

nothing calls this directly

Calls 3

_apply_elementwiseMethod · 0.95
_from_pyarrow_arrayMethod · 0.95
findallMethod · 0.80

Tested by

no test coverage detected