Is there a way to one hot encode a categorical type column other than manually - i.e. from a column with n categorical levels, create n-1 columns of 0s and 1s?