One Hot Encoding To Integer Function Python Definition