Question: Open the Report.ipynb in this folder. Create a DataFrame that contains the data in balance.txt . Write the code needed to produce a report that
Open the Report.ipynb in this folder.
Create a DataFrame that contains the data in balance.txt
Write the code needed to produce a report that provides the following
information:
Compare the average income based on ethnicity.
On average, do married or single people have a higher balance?
What is the highest income in our dataset?
What is the lowest income in our dataset?
How many cards do we have recorded in our dataset? Hint: use
sum
How many females do we have information for vs how many males?
Hint: use count:
:
# Import pandas
Write the code needed to produce a report that provides the following information:
Compare the average income based on ethnicity.
On average, do married or single people have a higher balance?
What is the highest income in our dataset?
What is the lowest income in our dataset?
How many cards do we have recorded in our dataset? Hint: use sum
How many females do we have information for vs how many males? Hint: use count for a list of all methods for computation of descriptive stats,
explore the pandas documentation "Balance" "Income" "Limit" "Rating" "Cards" "Age" "Education" "Gender" "Student" "Married" "Ethnicity"
"Male" No "Yes" "Caucasian"
"Female" "Yes" "Yes" "Asian"
"Male" NoNo "Asian"
"Female" NoNo "Asian"
"Male" No "Yes" "Caucasian"
"Male" NoNo "Caucasian"
"Female" NoNo "African American"
"Male" NoNo "Asian"
"Female" NoNo "Caucasian"
"Female" "Yes" "Yes" "African American"
"Male" No "Yes" "Caucasian"
"Male" NoNo "Caucasian"
"Female" No "Yes" "Asian"
"Male" No "Yes" "Caucasian"
"Female" NoNo "African American"
"Female" No "Yes" "African American"
"Female" No "Yes" "African American"
"Female" No "Yes" "Asian"
"Female" No "Yes" "Asian"
"Male" NoNo "Asian"
"Female" NoNo "Asian"
"Female" NoNo "Caucasian"
"Male" No "Yes" "African American"
"Male" No "Yes" "African American"
"Female" NoNo "Caucasian"
"Female" No "Yes" "African American"
"Female" "Yes" No "Caucasian"
"Male" NoNo "African American"
"Female" No "Yes" "African American"
"Female" NoNo "Caucasian"
"Female" No "Yes" "Caucasian"
"Male" No "Yes" "Asian"
