Transformer In-Context Learning for Categorical Data