valueerror unknown label type 'unknown' onehotencoder code example Example: unknown label type: 'unknown' y=y.astype('int')