Spaces:
Runtime error
Runtime error
Update eda.py
Browse files
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, ...
|
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)
|
|
|
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)
|