Skip to content

Commit 253ce70

Browse files
Automated commit of generated code
1 parent 59e088a commit 253ce70

File tree

1 file changed

+6
-0
lines changed
  • core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+6
-0
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/typeConversions.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import org.jetbrains.kotlinx.dataframe.DataColumn
1010
import org.jetbrains.kotlinx.dataframe.DataFrame
1111
import org.jetbrains.kotlinx.dataframe.DataRow
1212
import org.jetbrains.kotlinx.dataframe.annotations.AccessApiOverload
13+
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
14+
import org.jetbrains.kotlinx.dataframe.annotations.Refine
1315
import org.jetbrains.kotlinx.dataframe.columns.ColumnAccessor
1416
import org.jetbrains.kotlinx.dataframe.columns.ColumnGroup
1517
import org.jetbrains.kotlinx.dataframe.columns.ColumnPath
@@ -405,11 +407,15 @@ public fun <T, G> DataFrame<T>.asGroupBy(groupedColumn: ColumnReference<DataFram
405407
return asGroupBy { groups }
406408
}
407409

410+
@Refine
411+
@Interpretable("AsGroupByDefault")
408412
public fun <T> DataFrame<T>.asGroupBy(): GroupBy<T, T> {
409413
val groupCol = columns().single { it.isFrameColumn() }.asAnyFrameColumn().castFrameColumn<T>()
410414
return asGroupBy { groupCol }
411415
}
412416

417+
@Refine
418+
@Interpretable("AsGroupBy")
413419
public fun <T, G> DataFrame<T>.asGroupBy(selector: ColumnSelector<T, DataFrame<G>>): GroupBy<T, G> {
414420
val column = getColumn(selector).asFrameColumn()
415421
return GroupByImpl(this.move { column }.toEnd(), column) { none() }

0 commit comments

Comments
 (0)