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

Documentation update on reading a file #109

Open
JakeZw opened this issue Jan 31, 2025 · 0 comments
Open

Documentation update on reading a file #109

JakeZw opened this issue Jan 31, 2025 · 0 comments

Comments

@JakeZw
Copy link

JakeZw commented Jan 31, 2025

When reading a file compressed into a zip file into a dataframe using the technique described herehttps://csv.juliadata.org/stable/examples.html#zip_example, once the last line in the code snippet below is executed, the first line needs to be re-executed. If we want to read a second file and go directly to the second line and then the third line again, we get an empty dataframe.

This should be documented somewhere.

`
z = ZipFile.Reader("a.zip") # or "a2.zip"

a_file_in_zip = filter(x->x.name == "a.csv", z.files)[1]

a_copy = CSV.File(a_file_in_zip) |> DataFrame
`

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