Working with ranges
Ranges are a very common method for reducing and organizing data when you have a certain value for a group determined by some STARTING
and ENDING
attributes. For example, zip code ranges and cities, purchase amounts, customer categories, and so on.
In this recipe, we’ll go through the process of classifying people by their ages using an age range dictionary with categories.
So basically, we have the following:
Figure 3.7: Dataset that’ll be enriched
And our question is, how do we join that table with this?
Figure 3.8: A custom dictionary that contains CATEGORY descriptions by ranges
Getting ready
For this recipe, we prepared a test set, including some range-based dictionaries and a dataset to join. You can download it here:
https://github.com/PacktPublishing/Alteryx-Designer-Cookbook/tree/main/ch3/Recipe2
If you decide to test with your own data, make sure your custom dictionaries...