File tree Expand file tree Collapse file tree 5 files changed +645
-4
lines changed
generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api
src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree 5 files changed +645
-4
lines changed Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.samples.api
2
2
3
3
import org.jetbrains.kotlinx.dataframe.AnyFrame
4
+ import org.jetbrains.kotlinx.dataframe.DataFrame
4
5
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
6
+ import org.jetbrains.kotlinx.dataframe.api.take
5
7
import org.jetbrains.kotlinx.dataframe.explainer.WritersideFooter
6
8
import org.jetbrains.kotlinx.dataframe.explainer.WritersideStyle
9
+ import org.jetbrains.kotlinx.dataframe.io.read
7
10
import org.jetbrains.kotlinx.dataframe.io.toStandaloneHTML
8
11
import org.junit.Test
9
12
import java.io.File
10
13
11
14
// To display code together with a table, we can use TransformDataFrameExpressions annotation together with korro
12
15
// This class provides an ability to save only a table that can be embedded anywhere in the documentation
13
16
class OtherSamples {
17
+
14
18
@Test
15
19
fun extensionPropertiesApi1 () {
16
- val df = dataFrameOf( " example " )( 123 )
20
+ val df = DataFrame .read( " ../data/titanic.csv " , delimiter = ' ; ' ).take( 5 )
17
21
writeTable(df, " extensionPropertiesApi1" )
18
22
}
19
23
Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.samples.api
2
2
3
3
import org.jetbrains.kotlinx.dataframe.AnyFrame
4
+ import org.jetbrains.kotlinx.dataframe.DataFrame
4
5
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
6
+ import org.jetbrains.kotlinx.dataframe.api.take
5
7
import org.jetbrains.kotlinx.dataframe.explainer.WritersideFooter
6
8
import org.jetbrains.kotlinx.dataframe.explainer.WritersideStyle
9
+ import org.jetbrains.kotlinx.dataframe.io.read
7
10
import org.jetbrains.kotlinx.dataframe.io.toStandaloneHTML
8
11
import org.junit.Test
9
12
import java.io.File
10
13
11
14
// To display code together with a table, we can use TransformDataFrameExpressions annotation together with korro
12
15
// This class provides an ability to save only a table that can be embedded anywhere in the documentation
13
16
class OtherSamples {
17
+
14
18
@Test
15
19
fun extensionPropertiesApi1 () {
16
- val df = dataFrameOf( " example " )( 123 )
20
+ val df = DataFrame .read( " ../data/titanic.csv " , delimiter = ' ; ' ).take( 5 )
17
21
writeTable(df, " extensionPropertiesApi1" )
18
22
}
19
23
You can’t perform that action at this time.
0 commit comments