gilangw commited on
Commit
8c24d02
·
1 Parent(s): a618d1e

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +2 -1
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))