Skip to content

Commit

Permalink
Merge 33182a3 into fde3142
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jul 17, 2019
2 parents fde3142 + 33182a3 commit 455dd6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Project.toml
Expand Up @@ -3,6 +3,7 @@ uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
version = "0.31.0"

[deps]
DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Missings = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
Expand Down
4 changes: 2 additions & 2 deletions src/StatsBase.jl
@@ -1,10 +1,10 @@
__precompile__()

module StatsBase

import Base: length, isempty, eltype, values, sum, show, maximum, minimum, extrema
import Base.Cartesian: @nloops, @nref, @nextract
using Base: @irrational, @propagate_inbounds
using DataAPI
import DataAPI: describe
import DataStructures: heapify!, heappop!, percolate_down!
using SortingAlgorithms
using Missings
Expand Down
6 changes: 3 additions & 3 deletions src/scalarstats.jl
Expand Up @@ -648,12 +648,12 @@ Pretty-print the summary statistics provided by [`summarystats`](@ref):
the mean, minimum, 25th percentile, median, 75th percentile, and
maximum.
"""
describe(a::AbstractArray) = describe(stdout, a)
function describe(io::IO, a::AbstractArray{T}) where T<:Union{Real,Missing}
DataAPI.describe(x) = describe(stdout, x)
function DataAPI.describe(io::IO, a::AbstractArray{T}) where T<:Union{Real,Missing}
show(io, summarystats(a))
println(io, "Type: $(string(eltype(a)))")
end
function describe(io::IO, a::AbstractArray)
function DataAPI.describe(io::IO, a::AbstractArray)
println(io, "Summary Stats:")
println(io, "Length: $(length(a))")
println(io, "Type: $(string(eltype(a)))")
Expand Down

0 comments on commit 455dd6b

Please sign in to comment.