Python, Pandas, Data Science, Machine Learning, Pandas Dataframe.
dev. of 7 runs, 1 loop each) def normalize_for_itertuples(df, min_salary, max_salary): normalized_salary = list() for row in df.itertuples(): normalized_salary.append((row[12] - min_salary) / (max_salary - min_salary)) df["Normalized_Salary"] = normalized_salary return df %timeit