Data Science, Machine Learning, Causal Inference, AI, Linear Programming.
round(df['order_value'][df['assigned'] == 1].sum(), 0) opt_cost_check = round(df['cost'][df['assigned'] == 1].sum(), 0) print(f'The total order value from the optimised treatment strategy is {opt_order_value} with a cost of {opt_cost_check}') User generated image Final thoughts Today we covered