@@ -2,6 +2,9 @@ package org.jetbrains.kotlinx.dataframe.api
22
33import io.kotest.assertions.throwables.shouldThrow
44import io.kotest.matchers.shouldBe
5+ import org.jetbrains.kotlinx.dataframe.DataColumn
6+ import org.jetbrains.kotlinx.dataframe.DataFrame
7+ import org.jetbrains.kotlinx.dataframe.DataRow
58import org.jetbrains.kotlinx.dataframe.nrow
69import org.jetbrains.kotlinx.dataframe.samples.api.age
710import org.jetbrains.kotlinx.dataframe.samples.api.city
@@ -13,20 +16,27 @@ import org.jetbrains.kotlinx.dataframe.samples.api.weight
1316import org.junit.Test
1417
1518/* *
16- * This class tests the behavior of the `last` (`lastCol`) and `lastOrNull` functions, including:
17- * - **ColumnsSelectionDsl**: selecting the last column or last column matching a condition, with invocations
19+ * Tests the behavior of the [last] ([LastColumnsSelectionDsl.lastCol]) and [lastOrNull] functions, including:
20+ *
21+ * - [ColumnsSelectionDsl]: selecting the last column or last column matching a condition, with invocations
1822 * on illegal types, and in case when no column matches the condition.
19- * - **DataColumn**: getting the last value or the last value matching a predicate,
23+ *
24+ * - [DataColumn]: getting the last value or the last value matching a predicate,
2025 * verifying behavior on empty columns, columns with `null` values, and columns without values matching the predicate.
21- * - **DataFrame**: getting the last row or last matching row,
26+ *
27+ * - [DataFrame]: getting the last [row][DataRow] or last matching [row][DataRow],
2228 * verifying behavior on empty DataFrames, DataFrames with `null` values, and
2329 * DataFrames without rows matching the predicate.
24- * - **GroupBy**: reducing each group to its last row or the last row matching a predicate,
30+ *
31+ * - [GroupBy]: reducing each group to its last [row][DataRow] or the last [row][DataRow] matching a predicate,
2532 * with handling groups that contain no matching rows.
26- * - **Pivot**: reducing each group in the pivot to its last row or the last row matching a predicate,
27- * with handling groups that contain no matching rows.
28- * - **PivotGroupBy**: reducing each combined [pivot] + [groupBy] group to its last row
29- * or the last row matching a predicate, with handling [pivot] + [groupBy] combinations that contain no matching rows.
33+ *
34+ * - [Pivot]: reducing each group in the [Pivot] to its last [row][DataRow]
35+ * or the last [row][DataRow] matching a predicate, with handling groups that contain no matching rows.
36+ *
37+ * - [PivotGroupBy]: reducing each combined [pivot] + [groupBy] group to its last [row][DataRow]
38+ * or the last [row][DataRow] matching a predicate,
39+ * with handling [pivot] + [groupBy] combinations that contain no matching rows.
3040 */
3141class LastTests : ColumnsSelectionDslTests () {
3242
0 commit comments