You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Provide a [Collection]<[Int]> of row indices to update.
283
279
*
284
-
* @param rowIndices The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
280
+
* @param rowIndices The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
285
281
*/
286
282
publicfun <T, C> Update<T, C>.at(rowIndices:Collection<Int>): Update<T, C> = where { index in rowIndices }
287
283
288
284
/**
289
285
* ## At
290
286
* Only update the columns at certain given [row indices][org.jetbrains.kotlinx.dataframe.api.CommonUpdateAtFunctionDoc.RowIndicesParam]:
291
287
*
292
-
* Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
288
+
* Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
293
289
*
294
290
* For example:
295
291
*
@@ -301,15 +297,15 @@ public fun <T, C> Update<T, C>.at(rowIndices: Collection<Int>): Update<T, C> = w
301
297
*
302
298
* Provide a `vararg` of [Ints][Int] of row indices to update.
303
299
*
304
-
* @param rowIndices The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
300
+
* @param rowIndices The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
* Only update the columns at certain given [row indices][org.jetbrains.kotlinx.dataframe.api.CommonUpdateAtFunctionDoc.RowIndicesParam]:
311
307
*
312
-
* Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
308
+
* Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
313
309
*
314
310
* For example:
315
311
*
@@ -321,13 +317,12 @@ public fun <T, C> Update<T, C>.at(vararg rowIndices: Int): Update<T, C> = at(row
321
317
*
322
318
* Provide an [IntRange] of row indices to update.
323
319
*
324
-
* @param rowRange The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
320
+
* @param rowRange The indices of the rows to update. Either a [Collection][Collection]<[Int][Int]>, an [IntRange][IntRange], or just `vararg` indices.
325
321
*/
326
322
publicfun <T, C> Update<T, C>.at(rowRange:IntRange): Update<T, C> = where { index in rowRange }
327
323
328
324
/**
329
325
* ## Per Row Col
330
-
*
331
326
* Provide a new value for every selected cell given both its row and column using a [row-column expression][org.jetbrains.kotlinx.dataframe.RowColumnExpression].
332
327
*
333
328
* For example:
@@ -360,7 +355,6 @@ public typealias UpdateExpression<T, C, R> = AddDataRow<T>.(C) -> R
360
355
361
356
/**
362
357
* ## With
363
-
*
364
358
* Provide a new value for every selected cell given its row and its previous value using a
365
359
* [row value expression][org.jetbrains.kotlinx.dataframe.RowValueExpression].
366
360
*
@@ -373,7 +367,6 @@ public typealias UpdateExpression<T, C, R> = AddDataRow<T>.(C) -> R
373
367
*
374
368
*
375
369
* ## Note
376
-
*
377
370
* [update with][org.jetbrains.kotlinx.dataframe.api.Update.with]- and [add][org.jetbrains.kotlinx.dataframe.api.add]-like expressions use [AddDataRow][org.jetbrains.kotlinx.dataframe.api.AddDataRow] instead of [DataRow][org.jetbrains.kotlinx.dataframe.DataRow] as the DSL's receiver type.
378
371
* This is an extension to [RowValueExpression][org.jetbrains.kotlinx.dataframe.RowValueExpression] and
379
372
* [RowExpression][org.jetbrains.kotlinx.dataframe.RowExpression] that provides access to
@@ -396,7 +389,6 @@ private interface SeeAlsoWith
396
389
*
397
390
* Updates selected [column group][ColumnGroup] as a [DataFrame] with the given [expression].
398
391
*
399
-
*
400
392
* Provide a new value for every selected data frame using a [dataframe expression][org.jetbrains.kotlinx.dataframe.DataFrameExpression].
401
393
*
402
394
* For example:
@@ -535,7 +527,6 @@ public fun <T, C> Update<T, C>.perCol(values: AnyRow): DataFrame<T> = perCol(val
535
527
* - [Update with][org.jetbrains.kotlinx.dataframe.api.Update.with] to provide a new value for every selected cell giving its row.
536
528
* - [Update per row col][org.jetbrains.kotlinx.dataframe.api.Update.perRowCol] to provide a new value for every selected cell giving its row and column.
537
529
* ## This Per Col Overload
538
-
*
539
530
* Provide a new value for every selected cell given its column using a [column expression][org.jetbrains.kotlinx.dataframe.ColumnExpression].
540
531
*
541
532
* For example:
@@ -626,7 +617,6 @@ public fun <T, C> Update<T, C?>.notNull(expression: UpdateExpression<T, C, C>):
626
617
* Select columns using [column accessors][org.jetbrains.kotlinx.dataframe.columns.ColumnReference]
Copy file name to clipboardExpand all lines: core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/ExpressionsGivenRow.kt
0 commit comments