holgerbrandl
11/04/2023, 7:22 AMDataFrame.readDelim(
SleepPattern::class.java.getResourceAsStream("/data/iris.txt")!!,
csvType = CSVType.TDF,
delimiter = '\t'
)
Without the seemingly redundant delimiter
argument, it wont read the file correctly (but still reading with ,
as delimiter) . I know there is also readTsv
but readDelim
is sometimes handy as well. Is this a bug?Nikita Klimenko [JB]
11/06/2023, 2:24 PMdelimeter
overrides csvType
. For another, csvType
will work:
public fun DataFrame.Companion.readDelim(
reader: Reader,
format: CSVFormat = CSVFormat.DEFAULT.withHeader(),
colTypes: Map<String, ColType> = mapOf(),
skipLines: Int = 0,
readLines: Int? = null,
parserOptions: ParserOptions? = null,
): AnyFrame
I wouldn't say it's intended, should be fixed