I have multiple lists of features which are strings that I want to analyze. That is, e.g.:
[["0.5", "0.4", "disabled", "0.7", "disabled"], ["feature1", "feature2", "feature4", "feature1", "feature3"]]
I know how to convert strings like "0.5" to floats, but is there a way to "normalize" such lists to integer or float values (each list independently in my case)? I would like to get something like this:
[[2, 1, 0, 3, 0], [0, 1, 3, 0, 2]]
Does anyone know how to achieve this? Unfortunately I couldn't to find anything related to this problem yet.