File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/render Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import org.jetbrains.kotlinx.dataframe.api.with
9
9
import org.jetbrains.kotlinx.dataframe.samples.DataFrameSampleHelper
10
10
import org.junit.Test
11
11
12
- class FormatHeaderSamples : DataFrameSampleHelper (" format" , " api" ) {
12
+ class FormatHeaderSamples : DataFrameSampleHelper (" format" , " api" ) {
13
13
val df = peopleDf.cast<Person >()
14
14
15
15
@DataSchema
@@ -22,14 +22,14 @@ class FormatHeaderSamples: DataFrameSampleHelper("format", "api") {
22
22
interface Person {
23
23
val age: Int
24
24
val city: String?
25
- val name: DataRow <Name > // TODO Requires https://code.jetbrains.team/p/kt/repositories/kotlin/reviews/23694 to be merged
25
+ val name: DataRow <Name >
26
26
val weight: Int?
27
27
val isHappy: Boolean
28
28
}
29
29
30
30
@Test
31
31
fun formatHeader () {
32
- // SampleStart
32
+ // SampleStart
33
33
df
34
34
// Format all column headers with bold
35
35
.formatHeader().with { bold }
@@ -39,7 +39,7 @@ class FormatHeaderSamples: DataFrameSampleHelper("format", "api") {
39
39
.formatHeader { name.lastName }.with { textColor(blue) }
40
40
// Format all numeric column headers with underlines
41
41
.formatHeader { colsOf<Number ?>() }.with { underline }
42
- // SampleEnd
42
+ // SampleEnd
43
43
.saveDfHtmlSample()
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments