To improve decision-making in the modern credit card industry, PSPD Bank aims to evaluate customer behavior using transaction data. This analysis will help the bank proactively manage risks like bankruptcy and fraud, understand customer repayment behavior, and identify opportunities for tailored offers.
Mr. Jim Watson, CEO of PSPD Bank, has initiated this study to better analyze:
- Spend patterns across demographics
- Repayment behaviors
- Profitability from interest on monthly spend
The dataset comprises three sheets:
- Customer Acquisition: Details about the customer at the time of card issuance
- Spend: Transaction-level credit card spend data
- Repayment: Repayment records for each customer
- If age < 18 β Replace with mean age.
- If spend > card limit β Replace with 50% of the limit.
- If repayment > card limit β Replace with the card limit.
- Total number of unique customers
- Total number of distinct product categories
- Average monthly spend per customer
- Average monthly repayment per customer
- Monthly profit calculation based on 2.9% interest rate
- Top 5 product types
- City with highest total spend
- Age group spending the most
- Top 10 customers based on total repayment
- Annual spend per product by city with graphical representation
- Monthly spend comparison, city-wise
- Yearly spend on air tickets
- Monthly product spend trends (for seasonality detection)
A dynamic function is implemented to identify top 10 customers per city, based on:
- Selected product type (Gold/Silver/Platinum)
- Time frame (monthly/yearly)
This function allows flexible querying for targeted marketing and performance tracking.
- Language: Python
- Libraries: Pandas, NumPy, Matplotlib, Seaborn
- IDE: Jupyter Notebook / VS Code
credit-card-analysis/
β
βββ data/
β βββ credit_card_data.xlsx
β
βββ notebooks/
β βββ Credit_Card_Analysis.ipynb
β
βββ graphs/
β βββ monthly_product_spend.png
β βββ monthly_spend_city_wise.png
β βββ yearly_air_ticket_spend.png
β βββ yearly_total_spend_by_city_stacked_by_product.png
β βββ yearly_total_spend_by_product_stacked_by_cities.png
β
βββ README.md
-
Clone the repository:
git clone https://github.com/yourusername/credit-card-analysis.git cd credit-card-analysis -
Install dependencies:
pip install -r requirements.txt
-
Open and run the notebook:
jupyter notebook notebooks/Credit_Card_Analysis.ipynb
- Clear visibility into customer behavior
- Identification of high-value customers and cities
- Improved fraud detection through limit analysis
- Enhanced profitability tracking for PSPD Bank
For queries, reach out at: [dipeshyadav4444@gmail.com]