Destri2000
commited on
Commit
•
13516ff
1
Parent(s):
d28df28
Update eda.py
Browse files
eda.py
CHANGED
@@ -10,26 +10,22 @@ st.set_page_config(
|
|
10 |
)
|
11 |
|
12 |
def run():
|
13 |
-
#membuat judul
|
14 |
st.title('Credit Card Customer Default Payment')
|
15 |
|
16 |
-
#tambahkan gambar
|
17 |
image = Image.open('image.jpg')
|
18 |
st.image(image, caption = 'Credit Card Loan')
|
19 |
|
20 |
-
#bikin garis pemisah
|
21 |
st.markdown('---')
|
22 |
st.write("Default payment refers to a customer's failure to make timely payments on their financial obligations according to agreed terms. In the context of a credit card or loan, a default payment occurs when a customer fails to pay the minimum amount due or the entire balance due on time.")
|
23 |
st.write("Defaulting on a credit card payment is a serious matter with potentially far-reaching consequences for the cardholder's financial health and creditworthiness. It is important for cardholders to manage their credit responsibly and make timely payments to avoid defaulting on their credit card accounts.")
|
24 |
|
25 |
st.markdown('---')
|
26 |
-
|
27 |
df = pd.read_csv('data.csv')
|
28 |
st.write('## Customer Credit Card Data')
|
29 |
st.dataframe(df[['sex', 'education_level', 'marital_status', 'age', 'limit_balance']])
|
30 |
|
31 |
-
|
32 |
-
st.write('## Histrogram Customer Credit Card')
|
33 |
option = st.selectbox('Select Column: ', ('sex', 'education_level', 'marital_status', 'age'))
|
34 |
fig = plt.figure(figsize=(15,5))
|
35 |
sns.histplot(df[option], bins = 30, kde = True)
|
|
|
10 |
)
|
11 |
|
12 |
def run():
|
|
|
13 |
st.title('Credit Card Customer Default Payment')
|
14 |
|
|
|
15 |
image = Image.open('image.jpg')
|
16 |
st.image(image, caption = 'Credit Card Loan')
|
17 |
|
|
|
18 |
st.markdown('---')
|
19 |
st.write("Default payment refers to a customer's failure to make timely payments on their financial obligations according to agreed terms. In the context of a credit card or loan, a default payment occurs when a customer fails to pay the minimum amount due or the entire balance due on time.")
|
20 |
st.write("Defaulting on a credit card payment is a serious matter with potentially far-reaching consequences for the cardholder's financial health and creditworthiness. It is important for cardholders to manage their credit responsibly and make timely payments to avoid defaulting on their credit card accounts.")
|
21 |
|
22 |
st.markdown('---')
|
23 |
+
|
24 |
df = pd.read_csv('data.csv')
|
25 |
st.write('## Customer Credit Card Data')
|
26 |
st.dataframe(df[['sex', 'education_level', 'marital_status', 'age', 'limit_balance']])
|
27 |
|
28 |
+
st.write('## Histrogram Customer Credit Card Information')
|
|
|
29 |
option = st.selectbox('Select Column: ', ('sex', 'education_level', 'marital_status', 'age'))
|
30 |
fig = plt.figure(figsize=(15,5))
|
31 |
sns.histplot(df[option], bins = 30, kde = True)
|