valueerror unknown label type (array( 0 1 dtype=object) ) code example Example: unknown label type: 'unknown' y=y.astype('int')