DataFrames: where is categorical?

This is confusing: categorical should be available in 1.2.2?

(@v1.8) pkg> st                                                                                                                                                                      
      Status `C:\Users\PetrKrysl\.julia\environments\v1.8\Project.toml`                                                                                                              
  [a93c6f00] DataFrames v1.2.2                                                                                                                                                       
  [31c24e10] Distributions v0.25.11                                                                                                                                                  
  [38e38edf] GLM v1.5.1                                                                                                                                                              
  [295af30f] Revise v3.1.19                                                                                                                                                          
julia> using DataFrames                                                                                                                                                              
julia> categorical                                                                                                                                                                   
ERROR: UndefVarError: categorical not defined                                                                                                                                        

No, the CategoricalArrays.jl dependency was dropped before 1.0. You have to explicitly add CategoricalArrays.jl instead.

Some of the “act on whole data frames” functions will have to be replaced by slightly more complicated transform calls also.

1 Like