Back to Archive Computer Science
QID: #29550

Subject: Computer Science Status: Order This Question Now
We are going to analyze a dataset and do some small calculations. You will need ST.x|sx for the following section The data represents patients who have undergone stent implantation. In [ ]: #Include Necessary lines to import necessary libraries and initializing commands #read and save the datafile as a variable #View the first 10 lines of data In [10]: #Display the number of male vs female subjects df = pd.read_excel('ST.xlsx') df[‘Gender'1.value_counts() #Display the number of subjects with Hypertension #Display the number of subjects with Renal Insufficiency #Display the number of subjects with Congestive Heart Failure #Display is the average age of all subjects Outllol: MALE 55 FEMALE 45 Name: Gender, dtype: int64 In [ ]: #Display the average age of MALE subjects? #Display the average age of FEMALE subjects? #There are multiple ways to answer the questions above, I reccomend Indexing with pandas.loc (locIndexer) In [ ]: #Crosstab Congestive Heart Failure with Renal Insufficiency Grouped by Gender and Produce stacked Bar Graphs
ZERO AI
Human Written
PHD EXPERTS
Verified
TURNITIN
Clean Report
24/7 SUPPORT
Instant Help