concept categorical variable in category dask

This is an excerpt from Manning's book Data Science with Python and Dask.
Listing 5.13 aims to fill in missing values in the Vehicle Color column by assuming that they were the most common color in the dataset. Filling in missing values by using the most common element of a categorical variable or the arithmetic mean of a continuous variable is a common way to deal with missing values in a way that minimizes the effect on the statistical distribution of the data. On the first line of listing 5.13, we select the Vehicle Color column using the column selector and use the
value_countsmethod, which counts the unique occurrences of data. Here’s what the contents ofcount_of_vehicle_colorslook like:
While correlation is useful for understanding the relationship between two continuous numeric variables, you’re likely to also encounter categorical variables that you want to analyze. For example, in section 1, we looked at the average age of the vehicle when a citation was issued and found that the average vehicle was 6.74 years old. But are all kinds of vehicles the same? Let’s add another dimension to this analysis by answering the following question: