Skip to content

Commit 8ca04f1

Browse files
Automated commit of generated code
1 parent 40047a5 commit 8ca04f1

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/print.kt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.jetbrains.kotlinx.dataframe.DataFrame
55
import org.jetbrains.kotlinx.dataframe.DataRow
66
import org.jetbrains.kotlinx.dataframe.io.renderToString
77
import org.jetbrains.kotlinx.dataframe.schema.DataFrameSchema
8+
import org.jetbrains.kotlinx.dataframe.util.PRINT
89

910
// region DataColumn
1011

@@ -20,14 +21,25 @@ public fun <T> DataRow<T>.print(): Unit = println(this)
2021

2122
// region DataFrame
2223

24+
@Deprecated(message = PRINT, level = DeprecationLevel.HIDDEN)
2325
public fun <T> DataFrame<T>.print(
2426
rowsLimit: Int = 20,
2527
valueLimit: Int = 40,
2628
borders: Boolean = false,
2729
alignLeft: Boolean = false,
2830
columnTypes: Boolean = false,
2931
title: Boolean = false,
30-
): Unit = println(renderToString(rowsLimit, valueLimit, borders, alignLeft, columnTypes, title))
32+
): Unit = print(rowsLimit, valueLimit, borders, alignLeft, columnTypes, title, true)
33+
34+
public fun <T> DataFrame<T>.print(
35+
rowsLimit: Int = 20,
36+
valueLimit: Int = 40,
37+
borders: Boolean = false,
38+
alignLeft: Boolean = false,
39+
columnTypes: Boolean = false,
40+
title: Boolean = false,
41+
rowIndex: Boolean = true,
42+
): Unit = println(renderToString(rowsLimit, valueLimit, borders, alignLeft, columnTypes, title, rowIndex))
3143

3244
// endregion
3345

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/string.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import org.jetbrains.kotlinx.dataframe.nrow
1919
import org.jetbrains.kotlinx.dataframe.size
2020
import java.math.BigDecimal
2121

22-
internal fun AnyFrame.renderToString(
22+
public fun AnyFrame.renderToString(
2323
rowsLimit: Int = 20,
2424
valueLimit: Int = 40,
2525
borders: Boolean = false,

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/util/deprecationMessages.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ internal const val PARSER_OPTIONS = "This constructor is only here for binary co
4444

4545
internal const val PARSER_OPTIONS_COPY = "This function is only here for binary compatibility. $MESSAGE_1_0"
4646

47+
internal const val PRINT = "This function is only here for binary compatibility. $MESSAGE_1_0"
48+
4749
internal const val IS_COMPARABLE =
4850
"This function is replaced by `valuesAreComparable()` to better reflect its purpose. $MESSAGE_1_0"
4951
internal const val IS_COMPARABLE_REPLACE = "valuesAreComparable()"

0 commit comments

Comments
 (0)