Update src/template_code_location/ops/ops.py
This commit is contained in:
@@ -34,4 +34,7 @@ def transform_example_dataset(df: pd.DataFrame) -> pd.DataFrame:
|
|||||||
df["price_band"] = df["total_price"].apply(
|
df["price_band"] = df["total_price"].apply(
|
||||||
lambda value: "high" if value >= 25 else "standard"
|
lambda value: "high" if value >= 25 else "standard"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
df["total_price"] = df["quantity"] * df["unit_price"]
|
||||||
|
|
||||||
return df
|
return df
|
||||||
|
|||||||
Reference in New Issue
Block a user