Converting a Numerical into a Categorical Attribute on Tuva (v2)
Lesson
In this tutorial, students explore the Dinosaurs dataset and learn how to convert a numerical attribute into a categorical attribute on Tuva.
Converting a Numerical into a Categorical Attribute on Tuva Attributes in a dataset are typically either numerical or categorical. Numerical attributes use numbers as values, while categorical attributes use labels or groups. Sometimes, it is useful to treat a numerical attribute as categorical—for example, when you want to compare exact values as distinct groups rather than as measurements along a scale. On Tuva, you can convert a numerical attribute into a categorical one using the Attribute Settings Card. [---cta ⚡ Ready to practice? Jump straight into the interactive tool. ---]{border-left:#ecb606;buttons:[{"type":"enroll","text":"Enroll in series","bg":"#682D8A","color":"#ffffff","border":"#682D8A","icon":"ti ti-add"},{"type":"modeltool","text":"Try It Out Now","bg":"#ffffff","color":"#682D8A","icon":"ti ti-external","border":"#682D8A"}];} !![tuva]560x315 How It Works Convert a numerical attribute into a categorical attribute in three quick actions: [---card Graph a numerical attribute Drag and drop a numerical attribute onto an axis. ---]{border-color:#DADFE5;} [---card Open the Attribute Settings Card In the Case Card, select the :ti[ti-edit-attribute] next to the attribute name. ---]{border-color:#DADFE5;} [---card Change the attribute type Under Type, choose Categorical from the dropdown menu The numerical values are now treated as labels Each value appears as its own category (bin) ---]{border-color:#DADFE5;} [---card In a Nutshell Changing the attribute type allows numerical values to behave like categories, enabling grouped comparisons. ---]{border-color:#DADFE5;} [---cta ⚡ Try It Out Jump straight into the interactive tool. ---]{border-left:#ecb606;buttons:[{"type":"enroll","text":"Enroll in series","bg":"#682D8A","color":"#ffffff","border":"#682D8A","icon":"ti ti-add"},{"type":"modeltool","text":"Try It Out Now","bg":"#ffffff","color":"#682D8A","icon":"ti ti-external","border":"#682D8A"}];}
Topics and standards: Categorical Attribute, Numerical Attribute, Tutorial