import streamlit as st import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import plotly.express as px from PIL import Image st.set_page_config( page_title = 'Credit Card Customer Information' ) def run(): st.title('Credit Card Customer Default Payment') image = Image.open('image.jpg') st.image(image, caption = 'Credit Card Loan') st.markdown('---') 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.") 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.") st.markdown('---') df = pd.read_csv('data.csv') st.write('## Customer Credit Card Data') st.dataframe(df[['sex', 'education_level', 'marital_status', 'age', 'limit_balance']]) st.write('## Histrogram Customer Credit Card Information') option = st.selectbox('Select Column: ', ('sex', 'education_level', 'marital_status', 'age')) fig = plt.figure(figsize=(15,5)) sns.histplot(df[option], bins = 30, kde = True) plt.ylabel('Total Customers') st.pyplot(fig) if __name__ == '__main__': run()