Modifying a partial function by mapping unmapped elements to 'infinity' does not convert it into a function. This is because 'infinity' is not a real number, meaning there is still no valid output for those unmapped elements. Therefore, the definition of a function is not satisfied.