|
| 1 | +# CategoricalArrays.jl v1.0.0 Release Notes |
| 2 | + |
| 3 | +## Breaking changes |
| 4 | + |
| 5 | +* `unique(::CategoricalArray)` and `levels(::CategoricalArray)` return |
| 6 | + a `CategoricalArray` instead of unwrapping values, consistent with |
| 7 | + `unique(::AbstractArray)` in Base and `levels(::AbstractArray)` in DataAPI |
| 8 | + ([#358](https://github.com/JuliaData/CategoricalArrays.jl/pull/358), |
| 9 | + [#425](https://github.com/JuliaData/CategoricalArrays.jl/pull/425)). |
| 10 | + |
| 11 | +* `cut` always closes the last interval on the right |
| 12 | + ([#409](https://github.com/JuliaData/CategoricalArrays.jl/pull/409)). |
| 13 | + |
| 14 | +* `cut(x, breaks)` rounds breaks to generate shorter labels |
| 15 | + ([#422](https://github.com/JuliaData/CategoricalArrays.jl/pull/422)). |
| 16 | + |
| 17 | +* `cut(x, ngroups)` takes breaks from actual values instead of using |
| 18 | + quantile estimates which are generally longer |
| 19 | + ([#416](https://github.com/JuliaData/CategoricalArrays.jl/pull/416)) |
| 20 | + This only changes group labels, not their contents. |
| 21 | + |
| 22 | +* `T(::CategoricalArray{U})` and `convert(T, ::CategoricalArray{U})` |
| 23 | + now consistently return an `Array{U}` for `T` in `Array`, `Vector`, `Matrix`. |
| 24 | + This avoids creating `Array{<:CategoricalValue}` objects unless explicitly requested |
| 25 | + ([#420](https://github.com/JuliaData/CategoricalArrays.jl/pull/420)). |
| 26 | + |
| 27 | + |
| 28 | +* All deprecations have been removed |
| 29 | + ([#419](https://github.com/JuliaData/CategoricalArrays.jl/pull/419)). |
| 30 | + |
| 31 | +## New features |
| 32 | + |
| 33 | +* Support reading from and writing to Arrow files |
| 34 | + ([#415](https://github.com/JuliaData/CategoricalArrays.jl/pull/415)). |
| 35 | + |
| 36 | +* Improve performance of `recode` |
| 37 | + ([#407](https://github.com/JuliaData/CategoricalArrays.jl/pull/407)). |
| 38 | + |
| 39 | +* Support weighted quantiles in `cut` |
| 40 | + ([#423](https://github.com/JuliaData/CategoricalArrays.jl/pull/423)). |
| 41 | + |
| 42 | +## Bug fixes |
| 43 | + |
| 44 | +* Fix performance regression on Julia 1.11 and above |
| 45 | + ([#418](https://github.com/JuliaData/CategoricalArrays.jl/pull/418)). |
| 46 | + |
| 47 | +* Fix `cut` corner cases with duplicated breaks |
| 48 | + ([#410](https://github.com/JuliaData/CategoricalArrays.jl/pull/410)). |
0 commit comments