We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
calculate sum of all visits
1 parent cd200e8 commit f31d25cCopy full SHA for f31d25c
src/test/kotlin/org/jetbrains/kotlinx/dataframe/puzzles/BasicTests.kt
@@ -112,7 +112,11 @@ class BasicTests {
112
@Test
113
fun `calculate sum of all visits`() {
114
df[visits].sum() shouldBe 19
115
- df[ { "visits"<Int>() }].sum() shouldBe 19
+ df.sum { visits } shouldBe 19
116
+
117
+ df["visits"].cast<Int>().sum() shouldBe 19
118
+ df.sum { "visits"<Int>() } shouldBe 19
119
+ df.sum("visits") shouldBe 19
120
}
121
122
0 commit comments