xhochy / fletcher

Pandas ExtensionDType/Array backed by Apache Arrow

Home Page:https://fletcher.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add str.contains method

xhochy opened this issue · comments

  • ✔️ pandas function
  • ✔️ Python function: in
  • ✔️ C++ STL function
  • ❌ needs a regular expression library
  • ✔️ no need for a Unicode database (for case=True, otherwise need lower 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