Implement column-wise min-max scaling and z-score standardization while handling constant features safely.