File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ import org.jetbrains.kotlinx.dataframe.api.add
6
6
import org.jetbrains.kotlinx.dataframe.api.column
7
7
import org.jetbrains.kotlinx.dataframe.api.columnGroup
8
8
import org.jetbrains.kotlinx.dataframe.api.columnOf
9
- import org.jetbrains.kotlinx.dataframe.api.emptyDataFrame
10
9
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
10
+ import org.jetbrains.kotlinx.dataframe.api.emptyDataFrame
11
11
import org.jetbrains.kotlinx.dataframe.api.filter
12
12
import org.jetbrains.kotlinx.dataframe.api.frameColumn
13
13
import org.jetbrains.kotlinx.dataframe.api.map
@@ -203,7 +203,7 @@ class Create : TestBase() {
203
203
@Test
204
204
fun createEmptyDataFrame () {
205
205
// SampleStart
206
- val df = emptyDataFrame()
206
+ val df = emptyDataFrame< Any > ()
207
207
// SampleEnd
208
208
df.columnsCount() shouldBe 0
209
209
df.rowsCount() shouldBe 0
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Returns [`DataFrame`](DataFrame.md) with no rows and no columns.
10
10
<!-- -FUN createEmptyDataFrame-->
11
11
12
12
``` kotlin
13
- val df = emptyDataFrame()
13
+ val df = emptyDataFrame< Any > ()
14
14
```
15
15
16
16
<!-- -END-->
Original file line number Diff line number Diff line change @@ -23,5 +23,7 @@ df.replace { age }.with { 2021 - age named "year" }
23
23
<!-- -END-->
24
24
25
25
<tip >
26
+
26
27
` replace { columns }.with { columnExpression } ` is equivalent to ` convert { columns }.to { columnExpression } ` . See [ ` convert ` ] ( convert.md ) for details.
28
+
27
29
</tip >
You can’t perform that action at this time.
0 commit comments