Skip to content

Commit

Permalink
fix py doc
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcheung committed Nov 25, 2015
1 parent 80e704a commit 53f4b03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pyspark/sql/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def sum(self, *cols):

@since(1.6)
def pivot(self, pivot_col, values=None):
"""Pivots a column of the current DataFrame and preform the specified aggregation.
"""Pivots a column of the current DataFrame and perform the specified aggregation.
:param pivot_col: Column to pivot
:param values: Optional list of values of pivotColumn that will be translated to columns in
the output data frame. If values are not provided the method with do an immediate call
:param values: Optional list of values of pivot column that will be translated to columns in
the output DataFrame. If values are not provided the method will do an immediate call
to .distinct() on the pivot column.
>>> df4.groupBy("year").pivot("course", ["dotNET", "Java"]).sum("earnings").collect()
Expand Down

0 comments on commit 53f4b03

Please sign in to comment.