Skip to content

Commit 643a123

Browse files
committed
Fix test and add deprecation level
1 parent 1efea95 commit 643a123

File tree

2 files changed

+2
-1
lines changed
  • core/src
    • main/kotlin/org/jetbrains/kotlinx/dataframe/io
    • test/kotlin/org/jetbrains/kotlinx/dataframe/api

2 files changed

+2
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/common.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public fun catchHttpResponse(url: URL, body: (InputStream) -> AnyFrame): AnyFram
4848
@Deprecated(
4949
LISTS_TO_DATAFRAME_MIGRATION,
5050
ReplaceWith("this.toDataFrame(header = null, containsColumns)", "org.jetbrains.kotlinx.dataframe.api.toDataFrame"),
51+
level = DeprecationLevel.WARNING,
5152
)
5253
public fun <T> List<List<T>>.toDataFrame(containsColumns: Boolean = false): AnyFrame =
5354
toDataFrame(header = null, containsColumns)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ class CreateDataFrameTests {
713713
}
714714
}
715715

716-
val df = lines.chunked(3).toDataFrame()
716+
val df = lines.chunked(3).toDataFrame(header = null)
717717

718718
df.columnNames() shouldBe listOf("stamp", "header", "data")
719719
df.columnTypes() shouldBe listOf(typeOf<String>(), typeOf<String>(), typeOf<String>())

0 commit comments

Comments
 (0)