CoolFace
Datasetpublic

AdityaaXD/Credit-Score-Classification

๐Ÿ’ณ Credit Score Classification Dataset A comprehensive dataset for predicting customer credit scores into three categories: Good, Standard, and Poor. Dataset Description This dataset contains customer financial information and behavioral patterns used for credit score classification. It includes various features related to credit history, payment behavior, and financial metrics. Dataset Summary Property Value Total Samples ~100,000+โ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/AdityaaXD/Credit-Score-Classification.

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes10downloads
Dataset Card

๐Ÿ’ณ Credit Score Classification Dataset

A comprehensive dataset for predicting customer credit scores into three categories: Good, Standard, and Poor.

Dataset Description

This dataset contains customer financial information and behavioral patterns used for credit score classification. It includes various features related to credit history, payment behavior, and financial metrics.

Dataset Summary

PropertyValue
Total Samples~100,000+
Features22 (17 numerical + 5 categorical)
Target ClassesGood, Standard, Poor
FormatCSV
LanguageEnglish

Dataset Structure

Data Files

FileDescriptionSize
train.csvTraining dataset~31 MB
test.csvTest dataset~15 MB

Features

Numerical Features (17)
FeatureDescriptionData Type
AgeCustomer's age in yearsInteger
Annual_IncomeYearly incomeFloat
Monthly_Inhand_SalaryMonthly take-home salaryFloat
Num_Bank_AccountsNumber of bank accounts ownedInteger
Num_Credit_CardNumber of credit cardsInteger
Interest_RateAverage interest rate on creditInteger
Num_of_LoanNumber of active loansInteger
Delay_from_due_dateAverage payment delay in daysInteger
Num_of_Delayed_PaymentCount of delayed paymentsInteger
Changed_Credit_LimitCredit limit change percentageFloat
Num_Credit_InquiriesNumber of credit inquiriesInteger
Outstanding_DebtTotal outstanding debt amountFloat
Credit_Utilization_RatioCredit utilization percentageFloat
Credit_History_Age_MonthsLength of credit history in monthsInteger
Total_EMI_per_monthMonthly EMI paymentsFloat
Amount_invested_monthlyMonthly investment amountFloat
Monthly_BalanceAverage monthly balanceFloat
Categorical Features (5)
FeatureDescriptionCategories
MonthMonth of recordJanuary - December
OccupationEmployment typeAccountant, Architect, Developer, Doctor, Engineer, Entrepreneur, Journalist, Lawyer, Manager, Mechanic, Media_Manager, Musician, Scientist, Teacher, Writer
Credit_MixTypes of credit accountsBad, Good, Standard
Payment_of_Min_AmountMinimum payment behaviorYes, No, NM
Payment_BehaviourSpending patternsHighspentLargevaluepayments, HighspentMediumvaluepayments, HighspentSmallvaluepayments, LowspentLargevaluepayments, LowspentMediumvaluepayments, LowspentSmallvaluepayments
Target Variable
FeatureDescriptionClasses
Credit_ScoreCredit score classificationGood, Standard, Poor

Dataset Statistics

Class Distribution

ClassDescription
GoodCustomers with excellent credit profiles
StandardCustomers with average credit profiles
PoorCustomers with concerning credit profiles

Feature Statistics (Approximate)

FeatureMinMaxMean
Age14100~35
Annual_Income0500,000~50,000
NumBankAccounts020~5
CreditUtilizationRatio0%100%~30%
CreditHistoryAge_Months0500~200

Usage

Loading with Pandas

python
import pandas as pd

# Load training data
train_df = pd.read_csv('train.csv')
print(f"Training samples: {len(train_df)}")
print(f"Features: {train_df.columns.tolist()}")

# Load test data
test_df = pd.read_csv('test.csv')
print(f"Test samples: {len(test_df)}")

Basic Exploration

python
# Check class distribution
print(train_df['Credit_Score'].value_counts())

# Check for missing values
print(train_df.isnull().sum())

# Statistical summary
print(train_df.describe())

Data Preprocessing

The following preprocessing steps are recommended:

  1. 1.Handle Missing Values: Some columns may contain missing or placeholder values
  2. 2.Clean Categorical Data: Handle special characters in categorical columns
  3. 3.Feature Scaling: Apply StandardScaler to numerical features
  4. 4.Encoding: Use OneHotEncoder for categorical features, LabelEncoder for target

Example Preprocessing

python
from sklearn.preprocessing import StandardScaler, LabelEncoder, OneHotEncoder
import pandas as pd

# Numerical columns
numerical_cols = ['Age', 'Annual_Income', 'Monthly_Inhand_Salary', 
                  'Num_Bank_Accounts', 'Num_Credit_Card', 'Interest_Rate',
                  'Num_of_Loan', 'Delay_from_due_date', 'Num_of_Delayed_Payment',
                  'Changed_Credit_Limit', 'Num_Credit_Inquiries', 'Outstanding_Debt',
                  'Credit_Utilization_Ratio', 'Credit_History_Age_Months',
                  'Total_EMI_per_month', 'Amount_invested_monthly', 'Monthly_Balance']

# Categorical columns
categorical_cols = ['Month', 'Occupation', 'Credit_Mix', 
                    'Payment_of_Min_Amount', 'Payment_Behaviour']

# Scale numerical features
scaler = StandardScaler()
X_numerical = scaler.fit_transform(train_df[numerical_cols])

# Encode target
label_encoder = LabelEncoder()
y = label_encoder.fit_transform(train_df['Credit_Score'])

Considerations for Using the Data

Data Quality Issues

  • โ€”Some columns may contain placeholder values (e.g., _, ________, !@9#%8)
  • โ€”Credit history age may need conversion from text format
  • โ€”Some numerical columns may have outliers

Ethical Considerations

โš ๏ธ Important: When using this data for credit scoring models:

  • โ€”Be aware of potential biases in the data
  • โ€”Ensure compliance with local financial regulations
  • โ€”Credit decisions should not be based solely on automated predictions
  • โ€”Provide transparency and explanations for credit decisions

Recommended Cleaning Steps

python
# Example: Handle placeholder values
placeholders = ['_', '________', '!@9#%8', 'NM']
for col in categorical_cols:
    train_df[col] = train_df[col].replace(placeholders, 'Unknown')

Related Models

Citation

bibtex
@dataset{credit-score-dataset,
  author = {Aditya},
  title = {Credit Score Classification Dataset},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/AdityaaXD/credit-score-dataset}
}

Contact