File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import org.jetbrains.kotlinx.dataframe.api.prev
10
10
import org.jetbrains.kotlinx.dataframe.api.update
11
11
import org.jetbrains.kotlinx.dataframe.api.where
12
12
import org.jetbrains.kotlinx.dataframe.api.with
13
- import org.jetbrains.kotlinx.dataframe.api.withValue
14
13
import org.jetbrains.kotlinx.dataframe.explainer.TransformDataFrameExpressions
15
14
import org.junit.Test
16
15
@@ -38,11 +37,11 @@ class DataRowApi : TestBase() {
38
37
// Row condition is used to filter rows by index
39
38
df.filter { index() % 5 == 0 }
40
39
41
- // Row condition is used to drop rows where `age` is the same as in previous row
40
+ // Row condition is used to drop rows where `age` is the same as in the previous row
42
41
df.drop { diffOrNull { age } == 0 }
43
42
44
43
// Row condition is used to filter rows for value update
45
- df.update { weight }.where { index() > 4 && city != " Paris" }.withValue( 50 )
44
+ df.update { weight }.where { index() > 4 && city != " Paris" }.with { 50 }
46
45
// SampleEnd
47
46
}
48
47
}
You can’t perform that action at this time.
0 commit comments