diff --git a/src/dataframe/dataframe.jl b/src/dataframe/dataframe.jl index e1019dc00b..74977e7a24 100644 --- a/src/dataframe/dataframe.jl +++ b/src/dataframe/dataframe.jl @@ -996,7 +996,7 @@ end function Base.hash(adf::AbstractDataFrame) h = hash(size(adf)) + 1 for i in 1:size(adf, 2) - h = bitmix(h, int(hash(adf[i]))) + h = hash(adf[i], h) end return uint(h) end diff --git a/src/other/index.jl b/src/other/index.jl index dbd3457afb..937def10e4 100644 --- a/src/other/index.jl +++ b/src/other/index.jl @@ -26,6 +26,7 @@ Base.names(x::Index) = copy(x.names) Base.copy(x::Index) = Index(copy(x.lookup), copy(x.names)) Base.deepcopy(x::Index) = Index(deepcopy(x.lookup), deepcopy(x.names)) Base.isequal(x::Index, y::Index) = isequal(x.lookup, y.lookup) && isequal(x.names, y.names) +Base.(:(==))(x::Index, y::Index) = isequal(x, y) function names!(x::Index, nm::Vector{Symbol}) if length(nm) != length(x)