Skip to content

Commit

Permalink
Update DataFrame_tools.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mwsohn authored Apr 3, 2022
1 parent 117d4f0 commit f0f8f76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataFrame_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,9 @@ function desc(df::DataFrame,varnames::Symbol...; labels::Union{Nothing,Label}=no
dfv[i,:Eltype] = etype(df,v)

# percent missing
if nmissing
nmiss = nmissing(df[!,v])
dfv[i,:Missing] = string(round(100 * nmiss/nrows,digits=1),"%")
if nmiss
_nmiss = nmissing(df[!,v])
dfv[i,:Missing] = string(round(100 * _nmiss/nrows,digits=1),"%")
end

# print(lpad(string(i),maxobs)," ",rpad(varstr,maxval)," ",
Expand Down

0 comments on commit f0f8f76

Please sign in to comment.