Deriving a column from other columns is the most common single operation in Pandas, and the row-by-row way of doing it is roughly a hundred times slower than the right way.
Write add_line_total(df).
df has columns sku, quantity and unit_price. Return a new DataFrame with all the original columns plus a line_total column equal to quantity * unit_price, added at the end.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in