one-hot encoder that maps a column of category indices to a column of binary vectors
By Lauren O'Reilly at Mar 14 2020