Skip to content

Commit a65a5c9

Browse files
fix ddfb kdocs
1 parent fb62fb4 commit a65a5c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ public class DataFrameBuilder(private val header: List<String>) {
416416
* A builder class for dynamically constructing a DataFrame with provided columns.
417417
* Allows adding columns manually while automatically handling duplicate column names by assigning unique names.
418418
*
419-
* @property checkDuplicateValues Whether to check for duplicate column (with identical names and values)
419+
* @property checkDuplicateValues Whether to check for duplicate column (with identical names and values). If `true`,
420+
* doesn't add a new column if the identical one is already in the builder.
420421
* when adding new columns. `true` by default.
421422
*/
422423
public class DynamicDataFrameBuilder(private val checkDuplicateValues: Boolean = true) {
@@ -479,10 +480,10 @@ public class DynamicDataFrameBuilder(private val checkDuplicateValues: Boolean =
479480
public fun get(column: String): AnyCol? = cols[column]
480481

481482
/**
482-
* Converts the current `DynamicDataFrameBuilder` instance into a `DataFrame`.
483-
* The resulting `DataFrame` is constructed from the columns stored in the builder.
483+
* Converts the current [DynamicDataFrameBuilder] instance into a [DataFrame].
484+
* The resulting [DataFrame] is constructed from the columns stored in the builder.
484485
*
485-
* @return A `DataFrame` containing the columns defined in the `DynamicDataFrameBuilder`.
486+
* @return A [DataFrame] containing the columns defined in the [DynamicDataFrameBuilder].
486487
*/
487488
public fun toDataFrame(): DataFrame<*> = cols.values.toDataFrame()
488489
}

0 commit comments

Comments
 (0)