How to group categorical columns into similar types?
although i don't quite understand your question. you don't have any business in worrying about data values in train and test sets, they are two different datasets after the split was done, as long as the features are the same, the content shouldn't be your focus. this is why scaling is done after splitting the dataset