Engineering mixed variables types
In this lesson, we will talk about mixed variables, the different formats of a mixed variable, a few examples of each format, and how them, alongside some simple code snippets.
Engineering mixed variable types
Mixed variables are a type of variable that can contain both numbers and labels. As an example, a smartphone model can have both letters and numbers mixed in each observation (for example, MCJ19085)
The simplest way to handle this feature is to extract the categorical part in one variable and the numerical part in a different variable, resulting in two variables. Then we can engineer the ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy