Skip to content

Commit

Permalink
Moved the type annotation to res (vs the function return type).
Browse files Browse the repository at this point in the history
  • Loading branch information
rofinn authored and nalimilan committed Sep 2, 2017
1 parent 620de2d commit da05554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ completecases(df)
```
"""
function completecases(df::AbstractDataFrame)::AbstractVector{Bool}
res = (!).(isna.(df[1]))
function completecases(df::AbstractDataFrame)
res::AbstractVector{Bool} = (!).(isna.(df[1]))
for i in 2:ncol(df)
res .&= (!).(isna.(df[i]))
end
Expand Down

0 comments on commit da05554

Please sign in to comment.