Skip to content

Allow readCSV to read a folder of CSVs #826

Closed as not planned
Closed as not planned
@Jolanrensen

Description

@Jolanrensen

This is a common practice in Python, Excel and other data wrangling environments.

Currently, DataFrame.readCSV("path/to/directory") results in a strange DataFrame with a single column containing all the filenames in the directory (where the first file is the column name...): #508

What should happen is something like:

Path("path/to/dir").listDirectoryEntries("*.csv").map {
    DataFrame.readCSV(it.toFile())
}.concat()

This should work in the gradle/ksp/compiler plugin too

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcsvCSV / delim related issuesenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions