@@ -40,17 +40,14 @@ public fun <T> DataColumn<T>.count(predicate: Predicate<T>? = null): Int =
40
40
/* *
41
41
* Returns the number of columns in this [DataRow].
42
42
*
43
- * For more information: {@include [DocumentationUrls.Count]}
44
- *
45
43
* @return the number of columns in this row.
44
+ * @see [columnsCount].
46
45
*/
47
46
public fun AnyRow.count (): Int = columnsCount()
48
47
49
48
/* *
50
49
* Counts the number of elements in the current row that satisfy the given [predicate].
51
50
*
52
- * For more information: {@include [DocumentationUrls.Count]}
53
- *
54
51
* @param predicate A predicate function to test each element.
55
52
* The predicate should return `true` for elements to be counted.
56
53
* @return The number of elements that satisfy the predicate.
@@ -110,7 +107,7 @@ public inline fun <T> DataFrame<T>.count(predicate: RowFilter<T>): Int = rows().
110
107
*
111
108
* This is equivalent to applying `.aggregate { count() }`, but more efficient.
112
109
*
113
- * See also common [aggregate][Grouped.aggregate].
110
+ * See also [DataFrame.groupBy] and common [aggregate][Grouped.aggregate].
114
111
*
115
112
* For more information: {@include [DocumentationUrls.Count]}
116
113
*
@@ -143,7 +140,7 @@ public fun <T> Grouped<T>.count(resultName: String = "count"): DataFrame<T> =
143
140
*
144
141
* This is equivalent to calling `.aggregate { count(predicate) }`, but more efficient.
145
142
*
146
- * See also: common [aggregate][Grouped.aggregate].
143
+ * See also [DataFrame.groupBy] and common [aggregate][Grouped.aggregate].
147
144
*
148
145
* For more information: {@include [DocumentationUrls.Count]}
149
146
*
@@ -186,6 +183,7 @@ public inline fun <T> Grouped<T>.count(
186
183
* This is equivalent to calling `.aggregate { count() }`, but more efficient.
187
184
*
188
185
* See also:
186
+ * - [pivot].
189
187
* - common [aggregate][Pivot.aggregate].
190
188
* - [pivotCounts][DataFrame.pivotCounts] shortcut.
191
189
*
@@ -223,6 +221,7 @@ public fun <T> Pivot<T>.count(): DataRow<T> = delegate { count() }
223
221
* This is equivalent to calling `.aggregate { count(predicate) }`, but more efficient.
224
222
*
225
223
* See also:
224
+ * - [pivot].
226
225
* - common [aggregate][Pivot.aggregate].
227
226
* - [pivotCounts][DataFrame.pivotCounts] shortcut.
228
227
*
@@ -261,6 +260,7 @@ public inline fun <T> Pivot<T>.count(crossinline predicate: RowFilter<T>): DataR
261
260
* This is equivalent to calling `.aggregate { count() }`, but more efficient.
262
261
*
263
262
* See also:
263
+ * - [pivot], [DataFrame.groupBy], [Pivot.groupBy] and [GroupBy.pivot].
264
264
* - common [aggregate][PivotGroupBy.aggregate];
265
265
* - [GroupBy.pivotCounts] shortcut.
266
266
*
@@ -297,6 +297,7 @@ public fun <T> PivotGroupBy<T>.count(): DataFrame<T> = aggregate { count() defau
297
297
* This is equivalent to calling `.aggregate { count() }`, but more efficient.
298
298
*
299
299
* See also:
300
+ * - [pivot], [DataFrame.groupBy], [Pivot.groupBy] and [GroupBy.pivot].
300
301
* - common [aggregate][PivotGroupBy.aggregate];
301
302
* - [GroupBy.pivotCounts] shortcut.
302
303
*
@@ -314,8 +315,7 @@ public fun <T> PivotGroupBy<T>.count(): DataFrame<T> = aggregate { count() defau
314
315
*/
315
316
public inline fun <T > PivotGroupBy<T>.count (crossinline predicate : RowFilter <T >): DataFrame <T > =
316
317
aggregate {
317
- count(predicate) default
318
- 0
318
+ count(predicate) default 0
319
319
}
320
320
321
321
// endregion
0 commit comments