CAC 2/2
CAC formula:
To write numbers in
0.0
format, use the next coderound(number, 1)
.
Task
Swipe to start coding
- Create the
expenses
variable by finding the sum of allcost.
values. Use the.sum()
function. - Find the number of rows in the
df
and put this value into thecustomers_number
variable. - Define the
CAC
variable using the formula. - Print the
CAC
variable in the0.00
format.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 5