Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,14 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
*/
@Suppress("INAPPLICABLE_JVM_NAME")
@JvmName("colUnTyped")
@Interpretable("SingleColumnNestedColUntyped")
public fun SingleColumn<DataRow<*>>.col(name: String): SingleColumn<*> = col<Any?>(name)

/**
* @include [ColNameDocs] {@set [CommonColDocs.RECEIVER] myColumnGroup.}
* @include [CommonColDocs.ColumnTypeParam]
*/
@Interpretable("SingleColumnNestedCol")
public fun <C> SingleColumn<DataRow<*>>.col(name: String): SingleColumn<C> =
this.ensureIsColumnGroup().transformSingle {
val child = it.getCol(name)?.cast<C>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ public class GroupClause<T, C>(internal val df: DataFrame<T>, internal val colum
* where that column should be grouped.
* All selected columns will be moved under the groups defined by this expression.
*/
@Refine
@JvmName("intoString")
@OverloadResolutionByLambdaReturnType
@OptIn(ExperimentalTypeInference::class)
@Interpretable("IntoStringLambda")
public fun <T, C> GroupClause<T, C>.into(column: ColumnsSelectionDsl<T>.(ColumnWithPath<C>) -> String): DataFrame<T> =
df.move(columns).under { column(it).toColumnAccessor() }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ public fun <T, C> RenameClause<T, C>.into(vararg newNames: KProperty<*>): DataFr
* and returns the new column name.
* @return A new [DataFrame] with the columns renamed.
*/
@Refine
@Interpretable("RenameIntoLambda")
public fun <T, C> RenameClause<T, C>.into(transform: (ColumnWithPath<C>) -> String): DataFrame<T> =
renameImpl(transform)

Expand Down
Loading