Course Content
Introduction to Python for Data Analysis
Introduction to Python for Data Analysis
2. Introduction to Python 2/2
3. Explore Dataset
Data StudyOperations with the FileHow to Explore the DataSorting DataMax, min, mean, medianChallengeGroup DataDive Deeper into Grouping DataGroup Data 2.0Introduction to NumPyPivot TablesRecall Loops.loc FunctionDeal with Several ConditionsChallengeVisualization: First StepsDive Deeper into Visualization
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
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