-
Notifications
You must be signed in to change notification settings - Fork 147
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
[DOCS] Naming consistency of length
functions
#2942
[DOCS] Naming consistency of length
functions
#2942
Conversation
length
functionslength
functions
CodSpeed Performance ReportMerging #2942 will not alter performanceComparing Summary
|
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 for making these changes! In addition to my comments, could you also change all of our existing tests and docs that use Expression.list.lengths
?
-
test/series/test_cast.py
-
test/table/list/test_list_count_lengths.py
(perhaps rename totest_list_count_length.py
) -
tutorials/delta_lake/2-distributed-batch-inference.ipynb
@kevinzwang Changes were made as per the comments. Let me know if there are any other changes needed. |
@kevinzwang |
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.
Looks great! Let me know once you've resolved the one comment I had and I can merge this.
daft/expressions/expressions.py
Outdated
"""Gets the length of each list | ||
|
||
Returns: | ||
Expression: a UInt64 expression which is the length of each list | ||
""" |
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 you replace this docstring with something along the lines of
"(DEPRECATED) Please use
Expression.list.length
instead"
…hub.com/vicky1999/Daft into vicky1999/Eventual-Inc#2769-list-length
@kevinzwang Docstring of |
@vicky1999 enabling auto-merge. Thank you for this contribution! |
Solves Eventual-Inc#2769 - Added `length` function to Expression.list - Added deprecation warning to `Expression.list.lengths`
Solves #2769
length
function to Expression.listExpression.list.lengths