Skip to content

Commit 7471b8d

Browse files
committed
Re-run the notebook
1 parent c5dd7e2 commit 7471b8d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/kotlin/Example_1_Add_Column.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ fun main() {
4848
.select { name }
4949
.print()
5050

51-
val result = movies
51+
// add columns to the dataframe on-the-fly
52+
movies
5253
.sortByDesc { rank }
5354
.select { name and year }
5455
.add("oldFilm") { year < 1973 }
5556
.add("containsReward") { name.contains("Reward") }
56-
57-
result
5857
.filter { oldFilm and containsReward }
5958
.take(10)
6059
.print()

0 commit comments

Comments
 (0)