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.captialize

xhochy opened this issue · comments

  • ✔️ pandas function
  • ✔️ Python function
  • ❌ C++ STL function
  • ✔️ no need for a regular expression library
  • ❌ need for a Unicode database for capitalization
  • ❌ cannot pre-compute output size as capital letters could have a different byte-width

Pseudo-Code:

Inputs: -

builder = StringBuilder()
for row in rows:
    builder.append(map_utf8_chararcters(utf8_captitalize, row))