Skip to content

Commit b5a4a3c

Browse files
guessFormat fix
1 parent e422860 commit b5a4a3c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public fun File.readDataRow(header: List<String> = emptyList()): AnyRow = DataRo
296296
public fun DataFrame.Companion.read(path: Path, header: List<String> = emptyList()): AnyFrame =
297297
read(
298298
path = path,
299-
format = guessFormat(path.toString())?.also {
299+
format = guessFormat(path)?.also {
300300
if (it !is SupportedDataFrameFormat) error("Format $it does not support reading dataframes")
301301
} as SupportedDataFrameFormat?,
302302
header = header,

0 commit comments

Comments
 (0)