File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ class Access : TestBase() {
874
874
// SampleStart
875
875
// by condition
876
876
df.select { cols { it.name().startsWith(" year" ) } }
877
- df.select { startsWith (" year" ) }
877
+ df.select { nameStartsWith (" year" ) }
878
878
879
879
// by type
880
880
df.select { colsOf<String >() }
@@ -919,7 +919,7 @@ class Access : TestBase() {
919
919
df.select { colsAtAnyDepth().colsOf<String >() }
920
920
921
921
// all columns except given column set
922
- df.select { except { colsOf<String >() } }
922
+ df.select { allExcept { colsOf<String >() } }
923
923
924
924
// union of column sets
925
925
df.select { take(2 ) and col(3 ) }
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class ApiLevels {
112
112
)
113
113
114
114
val passengers = DataFrame .read(" titanic.csv" )
115
- .filter { it.get( Passenger ::city) .endsWith(" NY" ) }
115
+ .filter { it[ Passenger ::city] .endsWith(" NY" ) }
116
116
.toListOf<Passenger >()
117
117
// SampleEnd
118
118
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class JoinWith : TestBase() {
104
104
}
105
105
}
106
106
107
- private fun AnyFrame.uwrapColoredValues (): AnyFrame {
107
+ private fun AnyFrame.unwrapColoredValues (): AnyFrame {
108
108
return convert { colsAtAnyDepth().colsOf<ColoredValue <* >? > () }.with (Infer .Type ) { it?.value }
109
109
}
110
110
@@ -171,9 +171,9 @@ class JoinWith : TestBase() {
171
171
}
172
172
173
173
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
177
177
178
178
PluginCallbackProxy .overrideHtmlOutput(
179
179
manualOutput = DataFrameHtmlData .tableDefinitions()
You can’t perform that action at this time.
0 commit comments