Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open CSV with a batch size #1226

Open
davidegazze opened this issue Aug 9, 2023 · 2 comments
Open

Open CSV with a batch size #1226

davidegazze opened this issue Aug 9, 2023 · 2 comments

Comments

@davidegazze
Copy link

Hi,
I am starting to use this package. For my need, I would like to read a big csv file.
Due to memory issue I would like to do something like that:

N = 10000 // Total number of rows
M = 100 // batch size
start_index = 0
end_index = start_index + M
while (end_index < N) {
// Read only a part of the csv

Table table1 = Table.read().csv("filename.csv", start_index =start_index , end_index =end_index );
// Elaboration

.....
end_index = start_index + M
}

Does it possible?

@davidegazze davidegazze changed the title Open only csv for N - row Open CSV with a batch size Aug 9, 2023
@lwhite1
Copy link
Collaborator

lwhite1 commented Aug 9, 2023 via email

@davidegazze
Copy link
Author

Understood thank for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants