Spaces:
Sleeping
Sleeping
Update eda.py
Browse files
eda.py
CHANGED
|
@@ -23,8 +23,9 @@ def run():
|
|
| 23 |
st.write('#### Pie Chart for Customer Status Distribution')
|
| 24 |
target = df["churn"].value_counts().reset_index()
|
| 25 |
persen = df["churn"].value_counts(normalize=True).reset_index()
|
| 26 |
-
target["percentage"] = persen["churn"]
|
| 27 |
print(target)
|
|
|
|
| 28 |
|
| 29 |
fig_1 = plt.figure()
|
| 30 |
fig_1, ax = plt.subplots(ncols=1, figsize=(5, 5))
|
|
|
|
| 23 |
st.write('#### Pie Chart for Customer Status Distribution')
|
| 24 |
target = df["churn"].value_counts().reset_index()
|
| 25 |
persen = df["churn"].value_counts(normalize=True).reset_index()
|
| 26 |
+
#target["percentage"] = persen["churn"]
|
| 27 |
print(target)
|
| 28 |
+
print(persen)
|
| 29 |
|
| 30 |
fig_1 = plt.figure()
|
| 31 |
fig_1, ax = plt.subplots(ncols=1, figsize=(5, 5))
|