Hi,
I am trying to import some large datasets with mixed types using SemanticImport. I’d like to normalise many of the columns that contain numeric data, and I’m wondering what the best way to do this is?
I understand that I can apply a specific function to columns, e.g.:
dataset[All, {"C2" -> f, "C3" -> f, "C4" -> f}]
However the data has hundreds of columns (of which only a large range need transforming), so manually specifying the transformation function for each column is very tedious. I could generate the transformation list first and then apply that. But I’m wondering if there is an easier way to specify a range of columns to apply a single function to, rather than having to specify each individually?
I also tried using MapAt however while:
dataset[All,MapAt[f,{2}]]
applies f to each of the elements in the second column, but
dataset[All,MapAt[f,{{2},{3}}]]
fails.
Thanks in advance for any help.
Jon