-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Adds str.length_bytes() function #2775
Conversation
CodSpeed Performance ReportMerging #2775 will improve performances by ×5.9Comparing Summary
Benchmarks breakdown
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is looking pretty good, just some extra tests and it should be good to go :)
tests/series/test_utf8_ops.py
Outdated
def test_series_utf8_length_bytes() -> None: | ||
s = Series.from_arrow(pa.array(["😉test", "hey̆", "baz"])) | ||
result = s.str.length_bytes() | ||
assert result.to_pylist() == [8, 5, 3] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also add some tests for empty string and nulls?
❌ Deploy Preview for daft-docs failed. Why did it fail? →
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks for the contribution and congrats on first PR! 🚀 🚀 🚀 🚀 🚀 🚀
Resolves #2770