Muhammad Fariz Firdaus
Upload 9 files
39a6292
import pandas as pd
import streamlit as st
import eda
import prediction
# Set the page title and favicon
st.set_page_config(page_title="Default Credit Card Client Prediction",
page_icon="💳",
layout='wide',
initial_sidebar_state='expanded'
)
# Create a sidebar with a title and a selection box
st.sidebar.title("Choose a page:")
page = st.sidebar.selectbox("", ('Landing Page', 'Data Exploration', 'Data Prediction'))
# Display different content depending on the selected page
if page == 'Data Exploration':
eda.run()
elif page == 'Data Prediction':
prediction.run()
else:
# Add a header and a subheader with some text
st.title("Will You Default on Your Credit Card Payment?")
st.subheader("Find out with this web app that uses machine learning to predict your defaulting risk.")
# Add an image about the case
st.image("https://images.emojiterra.com/twitter/512px/1f4b3.png", width=300)
with st.expander("Backgroud dataset"):
st.caption("""
This web app uses a dataset from Taiwanese Bank that contains information on default payments, demographic factors, credit data, payment history, and bill statements of credit card clients in Taiwan from April 2005 to September 2005.
""")
with st.expander("Problem statements"):
st.caption("The goal is to predict whether a client will default on their payment next month based on the given features.")
with st.expander("Sponsor"):
st.caption("""
This web app is sponsored by **XYZ Bank**, a leading financial institution that offers credit cards, loans, and other services to its customers.
XYZ Bank is committed to providing the best customer experience and ensuring responsible lending practices.
""")
st.image("https://bankxyz.com/wp-content/uploads/2021/06/bankxyz-logo-1.png")