-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][DOCS] Match several documentation changes in Scala to R/Python #17429
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1327,8 +1327,8 @@ def encode(col, charset): | |
| @since(1.5) | ||
| def format_number(col, d): | ||
| """ | ||
| Formats the number X to a format like '#,--#,--#.--', rounded to d decimal places, | ||
| and returns the result as a string. | ||
| Formats the number X to a format like '#,--#,--#.--', rounded to d decimal places | ||
| with HALF_EVEN round mode, and returns the result as a string. | ||
|
|
||
| :param col: the column name of the numeric value to be formatted | ||
| :param d: the N decimal places | ||
|
|
@@ -1675,8 +1675,8 @@ def array(*cols): | |
| @since(1.5) | ||
| def array_contains(col, value): | ||
| """ | ||
| Collection function: returns True if the array contains the given value. The collection | ||
| elements and value must be of the same type. | ||
| Collection function: returns null if the array is null, true if the array contains the | ||
| given value, and false otherwise. | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other documentation in this file use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. like my other comment, probably should say
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| :param col: name of column containing array | ||
| :param value: value to check for in array | ||
|
|
||
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.
for null, we need to be more careful -
nullin JVM should show up asNAin R.also, should
truebeTRUEandfalsebeFALSEto match R type?Uh oh!
There was an error while loading. Please reload this page.
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.
Yea, I agree with being careful. For this PR, I just followed the others. I skimmed again and it seems we have not used the notation for
None,TrueandFalseinfunctions.py, andNA,TRUEandFALSEinfunctions.R.I can grep and replace.