Spaces:
Sleeping
Sleeping
celineclarissa
commited on
Commit
•
8adcb68
1
Parent(s):
22784ee
Upload eda.py
Browse files
eda.py
CHANGED
@@ -1,17 +1,22 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import matplotlib.pyplot as plt
|
4 |
|
|
|
5 |
st.set_page_config(
|
6 |
page_title = 'GC5'
|
7 |
)
|
8 |
|
|
|
9 |
def default_id(i):
|
|
|
10 |
if i == 'Default':
|
11 |
return 1
|
12 |
else:
|
13 |
return 0
|
14 |
|
|
|
15 |
def run():
|
16 |
# make title
|
17 |
st.title('Credit Card Data EDA')
|
@@ -222,5 +227,6 @@ def run():
|
|
222 |
# show insight
|
223 |
st.write('From the pie charts, it can be understood that the average bill statement in each month for customers whose payment status is default and non-default are quite similar. In 5 months, the average bill statement gradually rose. Both default and non-default customers have highest average bill statement in September 2005. So, it can be concluded that ***there are no significant difference in average bill statement between customers whose payment status is default and non-default***. Other than that, it was found that ***as time goes by, the average bill statement tends to increase***.')
|
224 |
|
|
|
225 |
if __name__=='__main__':
|
226 |
run()
|
|
|
1 |
+
# import libraries
|
2 |
import streamlit as st
|
3 |
import pandas as pd
|
4 |
import matplotlib.pyplot as plt
|
5 |
|
6 |
+
# set page title
|
7 |
st.set_page_config(
|
8 |
page_title = 'GC5'
|
9 |
)
|
10 |
|
11 |
+
# make function to convert text to correlating digit
|
12 |
def default_id(i):
|
13 |
+
# make condition
|
14 |
if i == 'Default':
|
15 |
return 1
|
16 |
else:
|
17 |
return 0
|
18 |
|
19 |
+
# make function run()
|
20 |
def run():
|
21 |
# make title
|
22 |
st.title('Credit Card Data EDA')
|
|
|
227 |
# show insight
|
228 |
st.write('From the pie charts, it can be understood that the average bill statement in each month for customers whose payment status is default and non-default are quite similar. In 5 months, the average bill statement gradually rose. Both default and non-default customers have highest average bill statement in September 2005. So, it can be concluded that ***there are no significant difference in average bill statement between customers whose payment status is default and non-default***. Other than that, it was found that ***as time goes by, the average bill statement tends to increase***.')
|
229 |
|
230 |
+
# execute file
|
231 |
if __name__=='__main__':
|
232 |
run()
|