Skip to content

Commit 91181eb

Browse files
join kdocs fixes
1 parent 16744a8 commit 91181eb

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/join.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ private interface JoinDocs
6666
private interface JOIN_METHOD
6767

6868
/**
69-
* [JoinDsl] defines the columns used for joining [DataFrame]s
69+
* [JoinDsl] allows you to define the columns used for joining [DataFrame]s
7070
* and provides methods to match columns with different names
71-
* between the left and right sides.
71+
* between the left and right side.
7272
*
7373
* Provides the left [DataFrame] both as the receiver (`this`) and as the argument (`it`),
7474
* allowing you to reference its columns directly.
@@ -85,6 +85,9 @@ private interface JOIN_METHOD
8585
* // Join by one column with different names —
8686
* // "firstName" in the left dataframe and "name" in the right one
8787
* dfLeft.{@get [JoinMethod] join}(dfRight) { left -> left.firstName match right.name }
88+
*
89+
* // Match columns using String API
90+
* dfLeft.{@get [JoinMethod] join}(dfRight) { "symbol" match right.getValue<Char>("char") }
8891
* ```
8992
*/
9093
@ExcludeFromSources

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/joinWith.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public typealias JoinExpression<A, B> = Selector<JoinedDataRow<A, B>, Boolean>
8888
* Each join type has a corresponding shortcut function:
8989
* [innerJoinWith], [leftJoinWith], [rightJoinWith], [fullJoinWith], [filterJoinWith], and [excludeJoinWith].
9090
*
91-
* See also [join], which performs a join by exact values equality in the selected columns.
91+
* See also [join], which performs a join by exact value equality in the selected columns.
9292
*
9393
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
9494
*
@@ -119,7 +119,7 @@ public fun <A, B> DataFrame<A>.joinWith(
119119
* See also general [joinWith] as well as other shortcuts with each of join types:
120120
* [leftJoinWith], [rightJoinWith], [fullJoinWith], [filterJoinWith], [excludeJoinWith].
121121
*
122-
* See also [join], which performs a join by simply matching columns.
122+
* See also [join], which performs a join by exact value equality in the selected columns.
123123
*
124124
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
125125
*
@@ -146,7 +146,7 @@ public fun <A, B> DataFrame<A>.innerJoinWith(right: DataFrame<B>, joinExpression
146146
* See also general [joinWith] as well as other shortcuts with each of join types:
147147
* [innerJoinWith], [rightJoinWith], [fullJoinWith], [filterJoinWith], [excludeJoinWith].
148148
*
149-
* See also [join], which performs a join by simply matching columns.
149+
* See also [join], which performs a join by exact value equality in the selected columns.
150150
*
151151
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
152152
*
@@ -173,7 +173,7 @@ public fun <A, B> DataFrame<A>.leftJoinWith(right: DataFrame<B>, joinExpression:
173173
* See also general [joinWith] as well as other shortcuts with each of join types:
174174
* [innerJoinWith], [leftJoinWith], [fullJoinWith], [filterJoinWith], [excludeJoinWith].
175175
*
176-
* See also [join], which performs a join by simply matching columns.
176+
* See also [join], which performs a join by exact value equality in the selected columns.
177177
*
178178
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
179179
*
@@ -200,7 +200,7 @@ public fun <A, B> DataFrame<A>.rightJoinWith(right: DataFrame<B>, joinExpression
200200
* See also general [joinWith] as well as other shortcuts with each of join types:
201201
* [leftJoinWith], [rightJoinWith], [innerJoinWith], [filterJoinWith], [excludeJoinWith].
202202
*
203-
* See also [join], which performs a join by simply matching columns.
203+
* See also [join], which performs a join by exact value equality in the selected columns.
204204
*
205205
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
206206
*
@@ -227,7 +227,7 @@ public fun <A, B> DataFrame<A>.fullJoinWith(right: DataFrame<B>, joinExpression:
227227
* See also general [joinWith] as well as other shortcuts with each of join types:
228228
* [leftJoinWith], [rightJoinWith], [fullJoinWith], [innerJoinWith], [excludeJoinWith].
229229
*
230-
* See also [join], which performs a join by simply matching columns.
230+
* See also [join], which performs a join by exact value equality in the selected columns.
231231
*
232232
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
233233
*
@@ -254,7 +254,7 @@ public fun <A, B> DataFrame<A>.filterJoinWith(right: DataFrame<B>, joinExpressio
254254
* See also general [joinWith] as well as other shortcuts with each of join types:
255255
* [leftJoinWith], [rightJoinWith], [fullJoinWith], [filterJoinWith], [innerJoinWith].
256256
*
257-
* See also [join], which performs a join by simply matching columns.
257+
* See also [join], which performs a join by exact value equality in the selected columns.
258258
*
259259
* @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
260260
*

0 commit comments

Comments
 (0)