Skip to content

Commit 0856f3f

Browse files
committed
Prioritize examples that would work well with the compiler plugin
1 parent 6d68416 commit 0856f3f

File tree

3 files changed

+6
-631
lines changed

3 files changed

+6
-631
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Create.kt

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -336,35 +336,6 @@ class Create : TestBase() {
336336
// SampleEnd
337337
}
338338

339-
@Test
340-
@TransformDataFrameExpressions
341-
fun createDataFrameFromIterable() {
342-
// SampleStart
343-
val name by columnOf("Alice", "Bob", "Charlie")
344-
val age by columnOf(15, 20, 22)
345-
346-
listOf(name, age).toDataFrame()
347-
// SampleEnd
348-
}
349-
350-
@Test
351-
@TransformDataFrameExpressions
352-
fun createDataFrameFromNamesAndValues() {
353-
// SampleStart
354-
val names = listOf("name", "age")
355-
val values = listOf(
356-
"Alice", 15,
357-
"Bob", 20,
358-
"Charlie", 22,
359-
)
360-
val df = dataFrameOf(names, values)
361-
// SampleEnd
362-
df.columnNames() shouldBe listOf("name", "age")
363-
df.rowsCount() shouldBe 3
364-
df["name"].type() shouldBe typeOf<String>()
365-
df["age"].type() shouldBe typeOf<Int>()
366-
}
367-
368339
@Test
369340
@TransformDataFrameExpressions
370341
fun readDataFrameFromValues() {

0 commit comments

Comments
 (0)