Python, Pandas, Data Science, Machine Learning, Pandas Dataframe.
High 999996 Salary Category is Low 999997 Salary Category is High 999998 Salary Category is High 999999 Salary Category is Mid Level Name: Salary_Category, Length: 1000000, dtype: object """ df["Salary_Category"] = df["Salary"].map(foo) print(df["Salary_Category"]) """ 0 High 1 High 2 Mid Level 3