JuliaData / DataTables.jl

(DEPRECATED) A rewrite of DataFrames.jl based on Nullable
Other
29 stars 11 forks source link

duplicate functionality in merge! and hcat! #52

Open cjprybol opened 7 years ago

cjprybol commented 7 years ago

AFAICT merge! and hcat! do the same thing. Should we export hcat! and deprecate merge!?

ararslan commented 7 years ago

If anything I would do it the other way around: keep merge!, since that's the familiar name for this operation, and deprecate hcat!, since that's more reminiscent of Julia matrix terminology.

cjprybol commented 7 years ago

Sounds good to me! It's also easier to change the internal function names than it is to change all the code out in the wild that uses merge!. When I open the PR for this I'll add something to the docs to help users choose between hcat, merge!, and full outer join which all allow users to merge tables but do so in different ways. I just found out about merge! while reviewing tests for the #30 refactor.