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

source column-name missing when the input vector contains only one csv-file #1146

Open
yakir12 opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@yakir12
Copy link

yakir12 commented Nov 21, 2024

When files contains more than one csv-file name, the resulting table includes as expected and documented the chosen source column name:

tbl = CSV.File(files; source = :source)
@assert length(files) > 1
:source  keys(first(tbl)) # true

But when the Vector files contains only one item, the resulting table does not.

tbl = CSV.File(files; source = :source)
@assert length(files) == 1
:source  keys(first(tbl)) # false
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