# DataFrames: where is categorical?

**URL:** <https://discourse.julialang.org/t/dataframes-where-is-categorical/66555>\
**Category:** General Usage\
**Created:** [August 17, 2021, 3:21pm UTC](https://discourse.julialang.org/t/dataframes-where-is-categorical/66555 "2021-08-17T15:21:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [August 17, 2021, 3:21pm UTC](https://discourse.julialang.org/t/dataframes-where-is-categorical/66555/1 "2021-08-17T15:21:13Z")

</div>

This is confusing: `categorical` should be available in 1.2.2?

```julia
(@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                                                                                                                                        
                                                                                                                                                                                     
julia> 

```

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [August 17, 2021, 3:27pm UTC](https://discourse.julialang.org/t/dataframes-where-is-categorical/66555/2 "2021-08-17T15:27:57Z")

</div>

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.
