Identify why log-transforming this data produces -inf.
import numpy as np # Right-skewed feature that includes zeros x = np.array([0, 1, 10, 100, 1000]) # Reduce skew with a log transform transformed = np.log(x) print(transformed)
What is the bug in this log transform?