Skip to content
Snippets Groups Projects
Commit faabdfa2 authored by felixcheung's avatar felixcheung Committed by Reynold Xin
Browse files

[SPARK-11984][SQL][PYTHON] Fix typos in doc for pivot for scala and python

Author: felixcheung <felixcheung_m@hotmail.com>

Closes #9967 from felixcheung/pypivotdoc.
parent c1f85fc7
No related branches found
No related tags found
No related merge requests found
......@@ -169,11 +169,11 @@ class GroupedData(object):
@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()
......
......@@ -282,7 +282,7 @@ class GroupedData protected[sql](
}
/**
* Pivots a column of the current [[DataFrame]] and preform the specified aggregation.
* Pivots a column of the current [[DataFrame]] and perform the specified aggregation.
* There are two versions of pivot function: one that requires the caller to specify the list
* of distinct values to pivot on, and one that does not. The latter is more concise but less
* efficient, because Spark needs to first compute the list of distinct values internally.
......@@ -321,7 +321,7 @@ class GroupedData protected[sql](
}
/**
* Pivots a column of the current [[DataFrame]] and preform the specified aggregation.
* Pivots a column of the current [[DataFrame]] and perform the specified aggregation.
* There are two versions of pivot function: one that requires the caller to specify the list
* of distinct values to pivot on, and one that does not. The latter is more concise but less
* efficient, because Spark needs to first compute the list of distinct values internally.
......@@ -353,7 +353,7 @@ class GroupedData protected[sql](
}
/**
* Pivots a column of the current [[DataFrame]] and preform the specified aggregation.
* Pivots a column of the current [[DataFrame]] and perform the specified aggregation.
* There are two versions of pivot function: one that requires the caller to specify the list
* of distinct values to pivot on, and one that does not. The latter is more concise but less
* efficient, because Spark needs to first compute the list of distinct values internally.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment