Categories in another column, how to use dynamically?

Hi,
Yeah it seems like some vectorization is in order here. But it depends on what you’re trying to do though.
I noticed you don’t use the values column. So, what are studying with your model?