-
Notifications
You must be signed in to change notification settings - Fork 25
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
Concatenating two tables horizontally #69
Comments
One possible solution here is to define:
|
Firstly, I think you should be able to concatenate the columns of two tables via Secondly a |
And also - there is already an overload for https://github.com/JuliaData/TypedTables.jl/blob/main/src/columnops.jl#L8-L10 Note: that particular code creates a copy of the data, since |
Ah, that's convenient! Is this documented anywhere? I looked in the section on joining tables and didn't find it. I think it would also be helpful to add a note to the docstring of hcat since I think other people might try that first, as I did. By the way, |
Unfortunately the documentation is too sparse - it seems this isn't documented yet. Good suggestions! |
in DataFrames, we can
hcat
two dataframes with the same number of rows (such that the new dataframe has all columns from both sources). This is very intuitive to me, and I was surprised to find that it doesn't work with TypedTables, e.g.throws
ERROR: ArgumentError: Named tuple names do not match.
It looks like the meaning of
hcat
in this package is very different from what I expected. What is the best way to accomplish "column-wise" horizontal concatenation?The text was updated successfully, but these errors were encountered: