-
Notifications
You must be signed in to change notification settings - Fork 367
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
Names for DataFrames constructed from vector of rows (of tuples) #3315
Comments
The reason you observe this behavior is that you are using the Tables.jl tables fallback constructor. That is, your
So the issue is that your request is to change the column names that Tables.jl table already gave (that is Currently this can be done like this:
What you request is to create a new constructor:
Do you think it would be useful to have it, or you are fine with the |
I'm fine with the |
It should be unambiguous. I think we can add it. @nalimilan, @oxinabox - do you have any comments on this? |
I think the additional constructor sounds like a good idea. |
added in #3320 |
I tried constructing a DataFrame from a vector of rows (of tuples), I have, which works beautifully.
However, neither of the mechanisms I tried to give it names works. I understand I could make
the array one of NamedTuples, but it seems like there should be a convenient way to pass
the names as extra metadata. Or if there is a good way, consider this a request to add it
to the DataFrame doc string ;).
The text was updated successfully, but these errors were encountered: