Skip to content

Commit b96aa30

Browse files
committed
making generated-sources up to date
1 parent f54e2f0 commit b96aa30

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Access.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ class Access : TestBase() {
874874
// SampleStart
875875
// by condition
876876
df.select { cols { it.name().startsWith("year") } }
877-
df.select { startsWith("year") }
877+
df.select { nameStartsWith("year") }
878878

879879
// by type
880880
df.select { colsOf<String>() }
@@ -919,7 +919,7 @@ class Access : TestBase() {
919919
df.select { colsAtAnyDepth().colsOf<String>() }
920920

921921
// all columns except given column set
922-
df.select { except { colsOf<String>() } }
922+
df.select { allExcept { colsOf<String>() } }
923923

924924
// union of column sets
925925
df.select { take(2) and col(3) }

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/ApiLevels.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ApiLevels {
112112
)
113113

114114
val passengers = DataFrame.read("titanic.csv")
115-
.filter { it.get(Passenger::city).endsWith("NY") }
115+
.filter { it[Passenger::city].endsWith("NY") }
116116
.toListOf<Passenger>()
117117
// SampleEnd
118118
}

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/JoinWith.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class JoinWith : TestBase() {
104104
}
105105
}
106106

107-
private fun AnyFrame.uwrapColoredValues(): AnyFrame {
107+
private fun AnyFrame.unwrapColoredValues(): AnyFrame {
108108
return convert { colsAtAnyDepth().colsOf<ColoredValue<*>?>() }.with(Infer.Type) { it?.value }
109109
}
110110

@@ -171,9 +171,9 @@ class JoinWith : TestBase() {
171171
}
172172

173173
private fun snippetOutput(coloredResult: DataFrame<Any?>, result: DataFrame<Any?>) {
174-
coloredCampaigns.uwrapColoredValues() shouldBe campaigns
175-
coloredVisits.uwrapColoredValues() shouldBe visits
176-
coloredResult.uwrapColoredValues() shouldBe result
174+
coloredCampaigns.unwrapColoredValues() shouldBe campaigns
175+
coloredVisits.unwrapColoredValues() shouldBe visits
176+
coloredResult.unwrapColoredValues() shouldBe result
177177

178178
PluginCallbackProxy.overrideHtmlOutput(
179179
manualOutput = DataFrameHtmlData.tableDefinitions()

0 commit comments

Comments
 (0)