Add str.contains method
xhochy opened this issue · comments
Uwe L. Korn commented
- ✔️ pandas function
- ✔️ Python function:
in
- ✔️ C++ STL function
- ❌ needs a regular expression library
- ✔️ no need for a Unicode database (for
case=True
, otherwise needlower
implementation) - ✔️ can precompute output size as the result is a boolean array
Pseudo-Code:
Inputs: pat
output = BooleanArray(len(rows))
for i, row in enumerate(rows):
output[i] = pat in row