DynamicDataFrameBuilder

class DynamicDataFrameBuilder(checkDuplicateValues: Boolean = true)

A builder class for dynamically constructing a DataFrame with provided columns. Allows adding columns manually while automatically handling duplicate column names by assigning unique names.

See DynamicDataFrameBuilder on the documentation website.

Constructors

Link copied to clipboard
constructor(checkDuplicateValues: Boolean = true)

Functions

Link copied to clipboard
fun add(col: DataColumn<*>): String

Adds a column to the builder, ensuring its name is unique.

inline fun <reified T> add(values: Iterable<T>, name: String = ""): String

Adds a column to the builder from the given iterable of values, ensuring the column's name is unique.

Link copied to clipboard
fun get(column: String): DataColumn<*>?

Retrieves a column from the builder by its name.

Link copied to clipboard

Converts the current DynamicDataFrameBuilder instance into a DataFrame. The resulting DataFrame is constructed from the columns stored in the builder.