Skip to content

Commit

Permalink
Fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Dec 30, 2017
1 parent 690143d commit 49f1620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dataframe/dataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ end
function DataFrame(columns::AbstractVector, cnames::AbstractVector{Symbol};
makeunique::Bool=false)::DataFrame
if !all(col -> isa(col, AbstractVector), columns)
# change to throw(ArgumentError("columns argument must be a vector containing at least one vector"))
Base.depwarn("passing columns argument containing only scalars is deprecated", :DataFrame)
# change to throw(ArgumentError("columns argument must be a vector of AbstractVector objects"))
Base.depwarn("passing columns argument with non-AbstractVector entries is deprecated", :DataFrame)
end
return DataFrame(convert(Vector{Any}, columns), Index(convert(Vector{Symbol}, cnames),
makeunique=makeunique))
Expand Down

1 comment on commit 49f1620

@bkamins
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.