Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
Fix hcat ambiguity errors on Julia 0.6 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjprybol authored and nalimilan committed Feb 24, 2017
1 parent 008ee1d commit 9902e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/abstractdatatable/abstractdatatable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,10 @@ without(dt::AbstractDataTable, c::Any) = without(dt, index(dt)[c])

# catch-all to cover cases where indexing returns a DataTable and copy doesn't
Base.hcat(dt::AbstractDataTable, x) = hcat!(dt[:, :], x)
Base.hcat(dt1::AbstractDataTable, dt2::AbstractDataTable) = hcat!(dt[:, :], dt2)

Base.hcat(dt::AbstractDataTable, x, y...) = hcat!(hcat(dt, x), y...)
Base.hcat(dt1::AbstractDataTable, dt2::AbstractDataTable, dtn::AbstractDataTable...) = hcat!(hcat(dt1, dt2), dtn...)

# vcat only accepts DataTables. Finds union of columns, maintaining order
# of first dt. Missing data become null values.
Expand Down
2 changes: 2 additions & 0 deletions src/datatable/datatable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ hcat!(a::DataTable, b, c...) = hcat!(hcat!(a, b), c...)

# hcat
Base.hcat(dt::DataTable, x) = hcat!(copy(dt), x)
Base.hcat(dt1::DataTable, dt2::AbstractDataTable) = hcat!(copy(dt1), dt2)
Base.hcat(dt1::DataTable, dt2::AbstractDataTable, dtn::AbstractDataTable...) = hcat!(hcat(dt1, dt2), dtn...)

##############################################################################
##
Expand Down

0 comments on commit 9902e6e

Please # to comment.