You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "nealrichardson (via GitHub)" <gi...@apache.org> on 2023/09/18 17:03:55 UTC
[GitHub] [arrow] nealrichardson commented on issue #37762: [R] Column names that are empty strings
nealrichardson commented on issue #37762:
URL: https://github.com/apache/arrow/issues/37762#issuecomment-1724002604
FWIW if you use `read.csv()` or `readr::read_csv()` on that file, both will fill in a non-empty name for the first column (`"X"` and `"...1"`, respectively). Not saying we should copy that, but that would be one reason they would not error if you tried the same on a data.frame version of this.
Not sure where exactly we should check this since it's technically not invalid in Arrow. And unfortunately it's not trivial to fix either once you've read it in. `dplyr::rename()` doesn't seem to let you rename an empty name. `names<-.Dataset` is not implemented, though it could be. You can do `names(ds$schema)[1] <- "not_empty"` and that does work, though clearly suboptimal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org