Diff of /sc code.py [000000] .. [f08182]

Switch to side-by-side view

--- a
+++ b/sc code.py
@@ -0,0 +1,24 @@
+import pandas as pd  
+import matplotlib.pyplot as plt
+data_patients = pd.read_csv("patient_data.csv") 
+print("\n the data frame is \n========================================") 
+print(data_patients) 
+maximum =data_patients.max() 
+print("\n the maxmum valuues in the data is \n========================================") 
+print(maximum) 
+minimum =data_patients.min() 
+print("\n the minmum valuues in the data is \n========================================") 
+print(minimum) 
+average_data_patients =data_patients["Glucose"].mean() 
+print("\n the average of Glucose is " , average_data_patients ) 
+average_data_patients =data_patients["BloodPressure"].mean() 
+print("\n the average of BloodPressure is " , average_data_patients ) 
+average_data_patients =data_patients["BMI"].mean() 
+print("\n the average of BMI is " , average_data_patients ) 
+average_data_patients =data_patients["Age"].mean() 
+print("\n the average of Age is " , average_data_patients ) 
+number_of_the_patients=data_patients[(data_patients['Age'] > 50) & (data_patients['BloodPressure'] >= 70)] 
+print("\n the number_of_the_patients is \n========================================") 
+print(number_of_the_patients) 
+data_patients.plot(kind='box', subplots=True, layout=(2,2), sharex=False, sharey=False)
+plt.show()
\ No newline at end of file