@@ -32,6 +32,8 @@ import org.jetbrains.kotlinx.dataframe.impl.headPlusArray
32
32
import org.jetbrains.kotlinx.dataframe.index
33
33
import org.jetbrains.kotlinx.dataframe.util.DEPRECATED_ACCESS_API
34
34
import kotlin.reflect.KProperty
35
+ import org.jetbrains.kotlinx.dataframe.DataColumn
36
+ import org.jetbrains.kotlinx.dataframe.api.mean
35
37
36
38
/* *
37
39
* ## The Update Operation
@@ -78,6 +80,9 @@ public class Update<T, C>(
78
80
* `\[ `__`.`__[**`at`**][Update.at]**`(`**[`rowIndices`][CommonUpdateAtFunctionDoc.RowIndicesParam]**`)`**` ]`
79
81
*
80
82
* {@include [Indent]}
83
+ * `\[ `__`.`__[**`notNull`**][Update.notNull]**`()`**` ]`
84
+ *
85
+ * {@include [Indent]}
81
86
* __`.`__[**`with`**][Update.with]**` { `**[`rowExpression`][ExpressionsGivenRow.RowValueExpression.WithExample]**` }`**
82
87
*
83
88
* {@include [Indent]}
@@ -403,7 +408,19 @@ internal infix fun <T, C> RowValueFilter<T, C>?.and(other: RowValueFilter<T, C>)
403
408
return { thisExp(this , it) && other(this , it) }
404
409
}
405
410
406
- /* * @include [Update.notNull] */
411
+ /* *
412
+ * ## Not Null
413
+ * @include [SelectingRows.RowValueCondition]
414
+ *
415
+ *
416
+ * For example:
417
+ *
418
+ * `df.`[update][update]` { `[colsOf][colsOf]`<`[Int][Int]`?>() }.`[notNull][notNull]`().`[perRowCol][Update.perRowCol]` { row, col ->`
419
+ *
420
+ * {@include [Indent]}`row\[col\] / col.`[mean][DataColumn.mean]`(skipNA = true)`
421
+ *
422
+ * `}`
423
+ */
407
424
@Interpretable(" UpdateNotNullDefault" )
408
425
public fun <T , C > Update <T , C ?>.notNull (): Update <T , C > = where { it != null } as Update <T , C >
409
426
0 commit comments