我知道seaborn.countplot有一个属性order可以设置来确定类别的顺序.但我想要做的是让类别按递减计数的顺序排列.我知道我可以通过手动计算计数(使用groupby原始数据框上的操作等)来实现这一点,但我想知道这个功能是否存在seaborn.countplot.令人惊讶的是,我无法在任何地方找到这个问题的答案.
我在网上看过一些解决方案
a = [1 2 3; 4 5 Inf]
a[isinf(a)] = NaN
Run Code Online (Sandbox Code Playgroud)
但这给了我一个关于Julia 1.0.1的错误:
ERROR: MethodError: no method matching isinf(::Array{Float64,2})
Closest candidates are:
isinf(::BigFloat) at mpfr.jl:851
isinf(::Missing) at missing.jl:79
isinf(::ForwardDiff.Dual) at <path on my local machine>
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?