You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/09/29 22:00:19 UTC

[GitHub] [arrow] edponce edited a comment on pull request #11232: ARROW-13853: [R] String to_title, to_lower, to_upper kernels

edponce edited a comment on pull request #11232:
URL: https://github.com/apache/arrow/pull/11232#issuecomment-930574971


   Interesting...the failed tests are because `stringr` behavior for `str_to_title()` is different from Python's `title()` when string begins with an integer. The C++ implementation follows Python's behavior.
   ```c++
   # R stringr
   > str_to_title("1Foo1")  # "1foo1"
   # Python
   >>> "1Foo1".title()  # "1Foo1"
   ```
   I conclude that this also applies for "is_title()" function because it ignores beginning integers...well...`stringr` does not has an `is_title()` function.
   
   What to do in such a case? cc @jonkeane @nealrichardson 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org