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

CSV.Chunks splits file into uneven chunks #1122

Open
arismavridis opened this issue Feb 13, 2024 · 0 comments
Open

CSV.Chunks splits file into uneven chunks #1122

arismavridis opened this issue Feb 13, 2024 · 0 comments

Comments

@arismavridis
Copy link

In the following example the "a" variable does not have a consistent size.

using CSV, DataFrames

number_of_lines = 10^6
CSV.write("data.csv", DataFrame(rand(number_of_lines, 10), :auto))

steps = 10

@time for chunk in CSV.Chunks("data.csv"; ntasks=steps)
    a = chunk |> DataFrame
    display(size((a)))
end

Please also have a look at this discourse post, for context.

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

1 participant