update with price band

This commit is contained in:
2026-06-16 12:46:10 +00:00
parent 1354b30863
commit 2e7bf4a0d5

View File

@@ -33,4 +33,8 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame:
df["total_price"] = df["quantity"] * df["unit_price"] df["total_price"] = df["quantity"] * df["unit_price"]
df["price_band"] = df["total_price"].apply(
lambda value: "high" if value >= 25 else "standard"
)
return df return df