mukhlishr commited on
Commit
3b6b3df
1 Parent(s): f6df849

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +2 -2
eda.py CHANGED
@@ -47,9 +47,9 @@ def run():
47
  # st.pyplot(fig)
48
 
49
  # Barplot frequency login
50
- st.write('###### Avg Frequency login (1 = 1-10, 2 = 11-20, ... 7 >= 51)')
51
  bins = [-1, 10,20,30,40,50,100]
52
- labels =[1,2,3,4,5,6,7]
53
  df['binned_frequency_login'] = pd.cut(df['avg_frequency_login_days'], bins,labels=labels).astype(float)
54
  fig=plt.figure(figsize=(15,5))
55
  sns.countplot(x='binned_frequency_login', data = df)
 
47
  # st.pyplot(fig)
48
 
49
  # Barplot frequency login
50
+ st.write('###### Avg Frequency login (1 = 1-10, 2 = 11-20, ... 6 >= 51)')
51
  bins = [-1, 10,20,30,40,50,100]
52
+ labels =[1,2,3,4,5,6]
53
  df['binned_frequency_login'] = pd.cut(df['avg_frequency_login_days'], bins,labels=labels).astype(float)
54
  fig=plt.figure(figsize=(15,5))
55
  sns.countplot(x='binned_frequency_login', data = df)