jaleesahmed commited on
Commit
72ac741
·
1 Parent(s): a1538d2
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -32,8 +32,7 @@ def outbreak(plot_type):
32
  return fig
33
  if plot_type == "Age vs Attrition":
34
  fig = plt.figure()
35
- positive_attrition_df = data_encoded.loc[data_encoded['Attrition'] == "Yes"]
36
- plt.hist(positive_attrition_df['Age'], bins=np.arange(0,80,10), alpha=0.8, rwidth=0.9, color='blue')
37
  plt.xlabel("Age")
38
  plt.ylabel("Count")
39
  plt.title("Age vs Attrition")
 
32
  return fig
33
  if plot_type == "Age vs Attrition":
34
  fig = plt.figure()
35
+ plt.hist(data_encoded['Age'], bins=np.arange(0,80,10), alpha=0.8, rwidth=0.9, color='red')
 
36
  plt.xlabel("Age")
37
  plt.ylabel("Count")
38
  plt.title("Age vs Attrition")