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().In[]:
In[]:
??# 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"
12.240798476047414.891360628323411 "Male" "No" "Yes" "Caucasian"
23.2833339223376106.025664548338215 "Female" "Yes" "Yes" "Asian"
22.5304088790893104.593707551447111 "Male" "No""No" "Asian"
27.652810710665148.924950468133611 "Female" "No""No" "Asian"
16.893978490488855.882489735726816 "Male" "No" "Yes" "Caucasian"
22.486177612391380.18804756947710 "Male" "No""No" "Caucasian"
10.574516436759520.996338825923712 "Female" "No""No" "African American"
14.576204351288471.40871145122879 "Male" "No""No" "Asian"
7.9380902950025215.125330026656613 "Female" "No""No" "Caucasian"
17.756964869700771.061681949134119 "Female" "Yes" "Yes" "African American"
13.994989533288763.095811758943014 "Male" "No" "Yes" "Caucasian"
9.4673077055935115.045131113836416 "Male" "No""No" "Caucasian"
19.218800319270280.61653083941577 "Female" "No" "Yes" "Asian"
10.698983739476443.68269225111499 "Male" "No" "Yes" "Caucasian"
9.893532973868519.144329126927513 "Female" "No""No" "African American"
10.045128133111420.089252520035715 "Female" "No" "Yes" "African American"
15.248771948805953.598371428637317 "Female" "No" "Yes" "African American"
12.960884748427536.496437833936915 "Female" "No" "Yes" "Asian"
11.573778050705749.5763844481289 "Female" "No" "Yes" "Asian"
13.236248932339642.07966264792449 "Male" "No""No" "Asian"
9.8531004102590517.7286023546316 "Female" "No""No" "Asian"
13.595776015492637.348637845817217 "Female" "No""No" "Caucasian"
9.4165094391394320.103263121336110 "Male" "No" "Yes" "African American"
16.302533422681464.02751793985488 "Male" "No" "Yes" "African American"
6.1609481530147110.742175715635715 "Female" "No""No" "Caucasian"
8.2325139512632914.09432332652516 "Female" "No" "Yes" "African American"
14.959915539251842.471362528964412 "Female" "Yes" "No" "Caucasian"
12.608460765659932.793453433324416 "Male" "No""No" "African American"
35.2710114972418186.6341341494924114 "Female" "No" "Yes" "African American"
14.007769590834326.813561141145516 "Female" "No""No" "Caucasian"
10.201523484686734.14256664134475 "Female" "No" "Yes" "Caucasian"
11.464864084439728.941273321054316 "Male" "No" "Yes" "Asian"
26.0394160554616134.18178385632

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!