Skip to content

Conversation

@animenon
Copy link
Contributor

@animenon animenon commented Mar 2, 2018

Argument name mismatch fixed.

What changes were proposed in this pull request?

col changed to new in doc string to match the argument list.

Patch file added: https://issues.apache.org/jira/browse/SPARK-23566

Please review http://spark.apache.org/contributing.html before opening a pull request.

Argument name mismatch fixed.
`col` changed to `new` in doc string to match the argument list.
@HyukjinKwon
Copy link
Member

ok to test

@HyukjinKwon
Copy link
Member

It's fine. Can you double check if there are same instances in this file or other files?

@SparkQA
Copy link

SparkQA commented Mar 2, 2018

Test build #87888 has finished for PR 20716 at commit 5d2bb9d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@animenon
Copy link
Contributor Author

animenon commented Mar 3, 2018

@HyukjinKwon Sure, shall do.

@SparkQA
Copy link

SparkQA commented Mar 3, 2018

Test build #87932 has finished for PR 20716 at commit 84d08e9.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 3, 2018

Test build #87934 has finished for PR 20716 at commit 98ef4a1.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

removed trailing white space - style fix
@SparkQA
Copy link

SparkQA commented Mar 3, 2018

Test build #87935 has finished for PR 20716 at commit 91d8473.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@animenon
Copy link
Contributor Author

animenon commented Mar 3, 2018

@HyukjinKwon Found couple more, have updated the same.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

If it is a Column, it will be used as the first partitioning column. If not specified,
the default number of partitions is used.
:param numPartitions:
can be an int to specify the target number of partitions or a Column.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to:

        :param numPartitions: can be an int to specify the target number of partitions or a Column.
            If it is a Column, it will be used as the first partitioning column. If not specified,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, was maintaining consistency with other :param on page.

def alias(self, alias):
"""Returns a new :class:`DataFrame` with an alias set.
:param alias: string, alias names to be set for the DataFrame.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alias names -> an alias name

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Mar 3, 2018

BTW, it doesn't need a JIRA for minor fixes. Let's avoid this next time :).

@SparkQA
Copy link

SparkQA commented Mar 3, 2018

Test build #87936 has finished for PR 20716 at commit 258bae4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@animenon
Copy link
Contributor Author

animenon commented Mar 5, 2018

Do check @gatorsmile

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Mar 5, 2018

Merged to master

Sorry, I pushed this before seeing the comment above. Please do a check or followup if required or requested.

@asfgit asfgit closed this in 5ff72ff Mar 5, 2018
mgaido91 pushed a commit to mgaido91/spark that referenced this pull request Mar 5, 2018
Argument name mismatch fixed.

## What changes were proposed in this pull request?

`col` changed to `new` in doc string to match the argument list.

Patch file added: https://issues.apache.org/jira/browse/SPARK-23566

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: Anirudh <[email protected]>

Closes apache#20716 from animenon/master.
@animenon
Copy link
Contributor Author

animenon commented Mar 6, 2018

@HyukjinKwon Its minor, so may not be required. Had tagged Gator just for a check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants