Could we have a step_factor2int() or something similar to convert factors into integers? Ideally with a from parameter that specifies the indexing (e.g. 0- or 1- based). Use case here is feeding data into embedding layers of keras models.
Alternatively, maybe there can be a step_lambda() that takes a user defined function for random use cases like this?