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

Allow a transform function to be applied to each chunk #18

Open
xiaodaigh opened this issue Mar 26, 2019 · 0 comments
Open

Allow a transform function to be applied to each chunk #18

xiaodaigh opened this issue Mar 26, 2019 · 0 comments

Comments

@xiaodaigh
Copy link

xiaodaigh commented Mar 26, 2019

Sometimes we wish to load the data chunk by chunk and apply a function to it instead of loading it into memory.

E.g. I may want to load each chunk and then save each function as a feather file. I would do it like this

readcsv("file/path.csv") do (chunk_id, chunk)
    Feather.save(chunk_id*".feather", chunk)
end
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