Python, Pandas, Data Science, Machine Learning, Pandas Dataframe.
max_salary): normalized_salary = np.zeros(len(df, )) for i in range(df.shape[0]): normalized_salary[i] = (df.loc[i, "Salary"] - min_salary) / (max_salary - min_salary) df["Normalized_Salary"] = normalized_salary return df %timeit normalize_for_loc(df, min_salary, max_salary) #5.45 s ± 15.1 ms per