Skip to content

Conversation

Jolanrensen
Copy link
Collaborator

@Jolanrensen Jolanrensen commented Oct 1, 2024

Fixes #507
First tiny piece of #827.

All our DataFrame.read() overloads exist in guess.kt and go over all available formats based on the file or url given to the function.

DataFrame.read(..., delimiter =) can be replaced by the already existing DataFrame.readCSV(..., delimiter =) function family. This deprecates the old function with a WARNING in favor of readCSV.

@Jolanrensen Jolanrensen added the csv CSV / delim related issues label Oct 1, 2024
@Jolanrensen Jolanrensen added this to the 0.15.0 milestone Oct 1, 2024
@Jolanrensen Jolanrensen mentioned this pull request Oct 1, 2024
28 tasks
@Jolanrensen Jolanrensen force-pushed the deprecating-read-no-csv branch from ac2248f to 82d94db Compare October 1, 2024 17:25
@Jolanrensen Jolanrensen force-pushed the deprecating-read-no-csv branch from 82d94db to b4ba01b Compare October 2, 2024 12:45
@Test
fun example() {
val df = DataFrame.read("../data/titanic.csv", delimiter = ';').take(5)
val df = DataFrame.readCSV("../data/titanic.csv", delimiter = ';').take(5)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to replace onlhy this call? Did we have something in the docs folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory "no" because all our docs are generated from runnable code, but I'll check anyway :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha, there was one! Thanks :D

@Jolanrensen Jolanrensen merged commit 88e8549 into master Oct 4, 2024
3 checks passed
@Jolanrensen Jolanrensen deleted the deprecating-read-no-csv branch October 4, 2024 19:15
Copy link
Contributor

Generated sources will be updated after merging this PR.
Please inspect the changes in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

csv CSV / delim related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read function with just skipLines =

2 participants