Spaces:
Runtime error
Runtime error
Commit
·
72ac741
1
Parent(s):
a1538d2
app
Browse files
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 |
-
|
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")
|