You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting words into a title form or capitalization is not a trivial task because of the complexities of natural language (acronyms, always capitalized words, special cases, non-alpha symbols, etc.). Also, there are no standard rules across libraries and different behaviors can be observed for certain inputs. In this PR, we chose to match the rules of Python's title() for its simplicity. Nevertheless, we note that its behavior differs from that of R's stringr library (str_to_title) when a word begins with numbers. This was detected in ARROW-13853.
# R stringr>str_to_title("1Foo1") # "1foo1"# Python>>>"1Foo1".title() # "1Foo1"
Capitalizes the first character of each word in the string, like SQL
initcap
or Pythonstr.title()
Reporter: Ian Cook / @ianmcook
Assignee: Eduardo Ponce / @edponce
Watchers: Rok Mihevc / @rok
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-12714. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: