We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5dd7e2 commit 7471b8dCopy full SHA for 7471b8d
1 file changed
src/main/kotlin/Example_1_Add_Column.kt
@@ -48,13 +48,12 @@ fun main() {
48
.select { name }
49
.print()
50
51
- val result = movies
+ // add columns to the dataframe on-the-fly
52
+ movies
53
.sortByDesc { rank }
54
.select { name and year }
55
.add("oldFilm") { year < 1973 }
56
.add("containsReward") { name.contains("Reward") }
-
57
- result
58
.filter { oldFilm and containsReward }
59
.take(10)
60
0 commit comments