From 16767c8f93479e76b03166eab9e0599cd8c2d242 Mon Sep 17 00:00:00 2001 From: Fabian Greimel <6280307+greimel@users.noreply.github.com> Date: Wed, 18 Sep 2019 09:41:28 +0200 Subject: [PATCH] Update src/extras.jl Co-Authored-By: Milan Bouchet-Valat --- src/extras.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extras.jl b/src/extras.jl index f3696452..6f72af91 100644 --- a/src/extras.jl +++ b/src/extras.jl @@ -138,7 +138,7 @@ Cut a numeric array into `ngroups` quantiles, determined using [`quantile`](@ref). """ cut(x::AbstractArray, ngroups::Integer; - labels=_default_formatter_) = + labels::Union{AbstractVector{<:AbstractString},Function}=_default_formatter_) = cut(x, Statistics.quantile(x, (1:ngroups-1)/ngroups); extend=true, labels=labels)