Python, Pandas, Data Science, Machine Learning, Pandas Dataframe.
np.zeros(len(df, )) i = 0 for index, row in df.iterrows(): normalized_salary[i] = (row["Salary"] - min_salary) / (max_salary - min_salary) i += 1 df["Normalized_Salary"] = normalized_salary return df %timeit normalize_for_iterrows(df, min_salary, max_salary) #21.7 s ± 53.3 ms per loop (mean ± std.