at
Only format the selected columns at given row indices.
Accepts either a Collection<Int>, an IntRange, or just vararg Int indices.
For more information: See format on the documentation website.
Examples using at
df.format()
.at(df.indices().step(2).toList())
.with { background(lightGray) }Check out the full Grammar.
Only format the selected columns at given row indices.
Accepts either a Collection<Int>, an IntRange, or just vararg Int indices.
For more information: See format on the documentation website.
Examples using at
df.format { colsOf<String?>() }
.at(0, 3, 4)
.with { background(lightGray) }Check out the full Grammar.
Only format the selected columns at given row indices.
Accepts either a Collection<Int>, an IntRange, or just vararg Int indices.
For more information: See format on the documentation website.
Examples using at
df.format { cols(2..7) }
.at(2..7)
.with { background(lightGray) }Check out the full Grammar.
Inserts the new column previously specified with insert at the given position in the DataFrame.
The new column will be placed at the specified index, shifting existing columns to the right.
For more information: See insert on the documentation website.
See Grammar for more details.
Example
// Insert a new column "age" at index 3
df.insert(age).at(3)Return
A new DataFrame with the inserted column placed at the specified position.
Parameters
The Int index where the new column should be inserted. Columns currently at this index and after will be shifted right.
At
Only update the columns at certain given org.jetbrains.kotlinx.dataframe.api.CommonUpdateAtFunctionDoc.RowIndicesParam:
Either a Collection<Int>, an IntRange, or just vararg indices.
For example:
df.update{ city }.at(5..10).with{ "Paris" }
df.update{ name }.at(1, 2, 3, 4).with{ "Empty" }
For more information: See update on the documentation website.
This At Overload
Provide a Collection<Int> of row indices to update.
Parameters
The indices of the rows to update. Either a Collection<Int>, an IntRange, or just vararg indices.
At
Only update the columns at certain given org.jetbrains.kotlinx.dataframe.api.CommonUpdateAtFunctionDoc.RowIndicesParam:
Either a Collection<Int>, an IntRange, or just vararg indices.
For example:
df.update{ city }.at(5..10).with{ "Paris" }
df.update{ name }.at(1, 2, 3, 4).with{ "Empty" }
For more information: See update on the documentation website.
This At Overload
Provide a vararg of Ints of row indices to update.
Parameters
The indices of the rows to update. Either a Collection<Int>, an IntRange, or just vararg indices.
At
Only update the columns at certain given org.jetbrains.kotlinx.dataframe.api.CommonUpdateAtFunctionDoc.RowIndicesParam:
Either a Collection<Int>, an IntRange, or just vararg indices.
For example:
df.update{ city }.at(5..10).with{ "Paris" }
df.update{ name }.at(1, 2, 3, 4).with{ "Empty" }
For more information: See update on the documentation website.
This At Overload
Provide an IntRange of row indices to update.
Parameters
The indices of the rows to update. Either a Collection<Int>, an IntRange, or just vararg indices.