Description Usage Arguments Value Note See Also Examples
Count the number of rows for each group when we have GroupedData
input.
The resulting SparkDataFrame will also contain the grouping columns.
This can be used as a column aggregate function with Column
as input,
and returns the number of items in a group.
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
a GroupedData or Column. |
A SparkDataFrame.
count since 1.4.0
count since 1.4.0
n since 1.4.0
Other aggregate functions:
avg()
,
column_aggregate_functions
,
corr()
,
cov()
,
first()
,
last()
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.