Skip to content

Commit b51f36a

Browse files
committed
Fix table display for remaining toDataFrame examples
1 parent 27264bc commit b51f36a

File tree

5 files changed

+1178
-15
lines changed

5 files changed

+1178
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@ import org.jetbrains.kotlinx.dataframe.api.toColumn
2626
import org.jetbrains.kotlinx.dataframe.api.toColumnOf
2727
import org.jetbrains.kotlinx.dataframe.api.toDataFrame
2828
import org.jetbrains.kotlinx.dataframe.api.value
29-
import org.jetbrains.kotlinx.dataframe.columns.ColumnKind
3029
import org.jetbrains.kotlinx.dataframe.explainer.TransformDataFrameExpressions
31-
import org.jetbrains.kotlinx.dataframe.kind
32-
import org.jetbrains.kotlinx.dataframe.type
3330
import org.junit.Test
3431
import java.io.File
3532
import kotlin.random.Random as KotlinRandom
36-
import kotlin.reflect.typeOf
3733

3834
class Create : TestBase() {
3935

@@ -419,11 +415,6 @@ class Create : TestBase() {
419415

420416
val df = students.toDataFrame(maxDepth = 1)
421417
// SampleEnd
422-
df.columnsCount() shouldBe 3
423-
df.rowsCount() shouldBe 2
424-
df["name"].kind shouldBe ColumnKind.Group
425-
df["name"]["firstName"].type() shouldBe typeOf<String>()
426-
df["scores"].kind shouldBe ColumnKind.Frame
427418
}
428419

429420
@Test
@@ -458,12 +449,6 @@ class Create : TestBase() {
458449
}
459450
}
460451
// SampleEnd
461-
df.columnsCount() shouldBe 5
462-
df.rowsCount() shouldBe 2
463-
df["name"].kind shouldBe ColumnKind.Value
464-
df["name"].type shouldBe typeOf<Name>()
465-
df["scores"].kind shouldBe ColumnKind.Frame
466-
df["summary"]["min score"].values() shouldBe listOf(3, 5)
467452
}
468453

469454
@Test

0 commit comments

Comments
 (0)