One Hot Encoding To Integer Function Python Example