We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ada57 commit 727b36cCopy full SHA for 727b36c
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/append.kt
@@ -10,7 +10,7 @@ import org.jetbrains.kotlinx.dataframe.nrow
10
11
public fun <T> DataFrame<T>.append(vararg values: Any?): DataFrame<T> {
12
val ncol = ncol
13
- assert(values.size % ncol == 0) { "Invalid number of arguments. Multiple of $ncol is expected, but actual was: ${values.size}" }
+ check(values.size % ncol == 0) { "Invalid number of arguments. Multiple of $ncol is expected, but actual was: ${values.size}" }
14
val newRows = values.size / ncol
15
return columns().mapIndexed { colIndex, col ->
16
val newValues = (0 until newRows).map { values[colIndex + it * ncol] }
0 commit comments