Skip to content

Commit d620aea

Browse files
Automated commit of generated code
1 parent 47c3423 commit d620aea

File tree

7 files changed

+27
-0
lines changed

7 files changed

+27
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import org.jetbrains.kotlinx.dataframe.DataColumn
99
import org.jetbrains.kotlinx.dataframe.DataFrame
1010
import org.jetbrains.kotlinx.dataframe.DataRow
1111
import org.jetbrains.kotlinx.dataframe.annotations.Check
12+
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
1213
import org.jetbrains.kotlinx.dataframe.columns.ColumnAccessor
1314
import org.jetbrains.kotlinx.dataframe.columns.ColumnGroup
1415
import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
@@ -84,8 +85,10 @@ public fun <T> ColumnGroup<*>.cast(): ColumnGroup<T> = this as ColumnGroup<T>
8485

8586
public fun <T> ColumnWithPath<*>.cast(): ColumnWithPath<T> = this as ColumnWithPath<T>
8687

88+
@Interpretable("ColumnAccessorCast")
8789
public fun <T> ColumnAccessor<*>.cast(): ColumnAccessor<T> = this as ColumnAccessor<T>
8890

91+
@Interpretable("ColumnSetCast")
8992
public fun <C> ColumnSet<*>.cast(): ColumnSet<C> = this as ColumnSet<C>
9093

9194
public fun <C> ColumnsResolver<*>.cast(): ColumnsResolver<C> = this as ColumnsResolver<C>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.jetbrains.kotlinx.dataframe.ColumnGroupReference
55
import org.jetbrains.kotlinx.dataframe.DataFrame
66
import org.jetbrains.kotlinx.dataframe.DataRow
77
import org.jetbrains.kotlinx.dataframe.annotations.AccessApiOverload
8+
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
89
import org.jetbrains.kotlinx.dataframe.columns.ColumnAccessor
910
import org.jetbrains.kotlinx.dataframe.columns.ColumnGroup
1011
import org.jetbrains.kotlinx.dataframe.columns.ColumnPath
@@ -672,6 +673,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
672673
*/
673674
@Suppress("INAPPLICABLE_JVM_NAME")
674675
@JvmName("colUnTyped")
676+
@Interpretable("Col")
675677
public fun col(name: String): ColumnAccessor<*> = column<Any?>(name)
676678

677679
/**
@@ -724,6 +726,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
724726
* @param [name] The name of the column.
725727
* @param [C] The type of the column.
726728
*/
729+
@Interpretable("ColUntyped")
727730
public fun <C> col(name: String): ColumnAccessor<C> = column(name)
728731

729732
/**
@@ -992,6 +995,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
992995
*/
993996
@Suppress("INAPPLICABLE_JVM_NAME")
994997
@JvmName("colUnTyped")
998+
@Interpretable("StringNestedColUntyped")
995999
public fun String.col(name: String): ColumnAccessor<*> = col<Any?>(name)
9961000

9971001
/**
@@ -1044,6 +1048,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
10441048
* @param [name] The name of the column.
10451049
* @param [C] The type of the column.
10461050
*/
1051+
@Interpretable("StringNestedCol")
10471052
public fun <C> String.col(name: String): ColumnAccessor<C> =
10481053
columnGroup(this)
10491054
.ensureIsColumnGroup()
@@ -1210,6 +1215,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
12101215
*/
12111216
@Suppress("INAPPLICABLE_JVM_NAME")
12121217
@JvmName("colUnTyped")
1218+
@Interpretable("ColumnPathColUntyped")
12131219
public fun ColumnPath.col(name: String): ColumnAccessor<*> = col<Any?>(name)
12141220

12151221
/**
@@ -1262,6 +1268,7 @@ public interface ColColumnsSelectionDsl<out _UNUSED> {
12621268
* @param [name] The name of the column.
12631269
* @param [C] The type of the column.
12641270
*/
1271+
@Interpretable("ColumnPathCol")
12651272
public fun <C> ColumnPath.col(name: String): ColumnAccessor<C> =
12661273
columnGroup(this).ensureIsColumnGroup().column(name)
12671274

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ public fun <T> emptyDataFrame(): DataFrame<T> = DataFrame.empty().cast()
545545

546546
// region create ColumnPath
547547

548+
@Interpretable("PathOf")
548549
public fun pathOf(vararg columnNames: String): ColumnPath = ColumnPath(columnNames.asList())
549550

550551
// endregion

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ public inline fun <T, C, reified R> Convert<T, C>.with(
589589
*
590590
* @param [expression] The [Data Frame Expression][org.jetbrains.kotlinx.dataframe.documentation.ExpressionsGivenDataFrame.DataFrameExpression] to replace the selected column group with.
591591
*/
592+
@Refine
593+
@Interpretable("ConvertAsFrame")
592594
public fun <T, C, R> Convert<T, DataRow<C>>.asFrame(
593595
expression: ColumnsContainer<T>.(ColumnGroup<C>) -> DataFrame<R>,
594596
): DataFrame<T> = asColumn { expression(this, it.asColumnGroup()).asColumnGroup(it.name()) }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import org.jetbrains.kotlinx.dataframe.AnyCol
44
import org.jetbrains.kotlinx.dataframe.ColumnsSelector
55
import org.jetbrains.kotlinx.dataframe.DataFrame
66
import org.jetbrains.kotlinx.dataframe.annotations.AccessApiOverload
7+
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
8+
import org.jetbrains.kotlinx.dataframe.annotations.Refine
79
import org.jetbrains.kotlinx.dataframe.api.CorrDocs.Grammar
810
import org.jetbrains.kotlinx.dataframe.api.CorrDocs.SelectingOptions
911
import org.jetbrains.kotlinx.dataframe.columns.ColumnGroup
@@ -179,6 +181,8 @@ public data class Corr<T, C>(internal val df: DataFrame<T>, internal val columns
179181
*
180182
* @return A square correlation matrix as a [DataFrame], where both rows and columns correspond to the original columns.
181183
*/
184+
@Refine
185+
@Interpretable("DataFrameCorr")
182186
public fun <T> DataFrame<T>.corr(): DataFrame<T> =
183187
corr {
184188
colsAtAnyDepth().filter { it.isSuitableForCorr() }

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import org.jetbrains.kotlinx.dataframe.ColumnsSelector
44
import org.jetbrains.kotlinx.dataframe.DataColumn
55
import org.jetbrains.kotlinx.dataframe.DataFrame
66
import org.jetbrains.kotlinx.dataframe.annotations.AccessApiOverload
7+
import org.jetbrains.kotlinx.dataframe.annotations.Interpretable
8+
import org.jetbrains.kotlinx.dataframe.annotations.Refine
79
import org.jetbrains.kotlinx.dataframe.api.Select.SelectSelectingOptions
810
import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
911
import org.jetbrains.kotlinx.dataframe.columns.toColumnSet
@@ -220,6 +222,8 @@ public fun <T : Number?> DataColumn<T>.cumSum(skipNA: Boolean = defaultCumSumSki
220222
* @see <a href="https://kotlin.github.io/dataframe/cumsum.html">See `cumSum` on the documentation website.</a>
221223
*
222224
*/
225+
@Refine
226+
@Interpretable("DataFrameCumSum")
223227
public fun <T, C : Number?> DataFrame<T>.cumSum(
224228
skipNA: Boolean = defaultCumSumSkipNA,
225229
columns: ColumnsSelector<T, C>,
@@ -362,6 +366,8 @@ public fun <T> DataFrame<T>.cumSum(skipNA: Boolean = defaultCumSumSkipNA): DataF
362366
* @see <a href="https://kotlin.github.io/dataframe/cumsum.html">See `cumSum` on the documentation website.</a>
363367
*
364368
*/
369+
@Refine
370+
@Interpretable("GroupByCumSum")
365371
public fun <T, G, C : Number?> GroupBy<T, G>.cumSum(
366372
skipNA: Boolean = defaultCumSumSkipNA,
367373
columns: ColumnsSelector<G, C>,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ public fun <T> DataFrame<T>.select(vararg columns: KProperty<*>): DataFrame<T> =
199199
*
200200
* @param [columns] The [Column Names][String] used to select the columns of this [DataFrame].
201201
*/
202+
@Refine
203+
@Interpretable("SelectString")
202204
public fun <T> DataFrame<T>.select(vararg columns: String): DataFrame<T> = select { columns.toColumnSet() }
203205

204206
/**
@@ -475,6 +477,7 @@ public interface SelectColumnsSelectionDsl {
475477
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns selected by [selector].
476478
* @see [SingleColumn.except]
477479
*/
480+
@Interpretable("StringSelect")
478481
public fun <R> String.select(selector: ColumnsSelector<*, R>): ColumnSet<R> = columnGroup(this).select(selector)
479482

480483
/**
@@ -523,6 +526,7 @@ public interface SelectColumnsSelectionDsl {
523526
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns selected by [selector].
524527
* @see [SingleColumn.except]
525528
*/
529+
@Interpretable("ColumnPathSelect")
526530
public fun <R> ColumnPath.select(selector: ColumnsSelector<*, R>): ColumnSet<R> = columnGroup(this).select(selector)
527531
}
528532

0 commit comments

Comments
 (0)