Skip to content

Commit

Permalink
More Julia 0.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jul 8, 2017
1 parent c274ef2 commit f34585a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Base.similar(df::AbstractDataFrame, dims::Int) =
##############################################################################

# Imported in DataFrames.jl for compatibility across Julia 0.4 and 0.5
function Base.:(==)(df1::AbstractDataFrame, df2::AbstractDataFrame)
function @compat(Base.:(==))(df1::AbstractDataFrame, df2::AbstractDataFrame)
size(df1, 2) == size(df2, 2) || return Nullable(false)
isequal(index(df1), index(df2)) || return Nullable(false)
eq = Nullable(true)
Expand Down
2 changes: 1 addition & 1 deletion src/dataframerow/dataframerow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end
# comparison of DataFrame rows
# only the rows of the same DataFrame could be compared
# rows are equal if they have the same values (while the row indices could differ)
function Base.:(==)(r1::DataFrameRow, r2::DataFrameRow)
function @compat(Base.:(==))(r1::DataFrameRow, r2::DataFrameRow)
if r1.df !== r2.df
throw(ArgumentError("Comparing rows from different frames not supported"))
end
Expand Down

0 comments on commit f34585a

Please sign in to comment.