df["tier"] = df["sales"].apply( lambda x: "high" if x > 1000 else "low" )