Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
github avatar

Datanalysis Credit Risk

  • 7.2k installs
  • 37.1k repo stars
  • Updated July 28, 2026
  • github/awesome-copilot

datanalysis-credit-risk is an agent skill that runs an 11-step credit risk data cleaning and variable screening pipeline with IV, PSI, missing rate, and correlation filters before modeling.

About

The datanalysis-credit-risk skill runs a credit risk data cleaning and variable screening pipeline for pre-loan modeling. The eleven independent steps load and format raw data, analyze organization sample counts and bad rates, separate out-of-sample organizations, filter abnormal months by minimum bad and total sample thresholds, calculate missing rates, drop high-missing features, remove low IV variables globally and per organization, drop unstable high PSI features, apply Null Importance denoising, remove high-correlation features by gain ranking, and export a multi-sheet Excel cleaning report. Core functions include get_dataset, org_analysis, missing_check, drop_abnormal_ym, IV and PSI distribution stats, and export_cleaning_report with configurable thresholds for missing ratio, IV, PSI, correlation, and tree-based noise detection. Steps execute without deleting original data to support comparative analysis and optional multiprocess acceleration for IV and PSI. Use when raw credit data needs quality assessment, missing value analysis, or variable selection before modeling.

  • Eleven-step pipeline from data load through Excel report without deleting source data.
  • Drops features by missing rate, low IV, high PSI, Null Importance noise, and correlation.
  • Organization-level IV, PSI, and sample statistics with OOS separation support.
  • Configurable thresholds for months, missing ratio, IV, PSI, gain, and correlation.
  • Excel report with summary, per-step detail sheets, and distribution statistics.

Datanalysis Credit Risk by the numbers

  • 7,192 all-time installs (skills.sh)
  • +36 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #14 of 2,066 Data Science & ML skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

datanalysis-credit-risk capabilities & compatibility

Capabilities
organization sample and bad rate analysis · oos separation and abnormal month filtering · missing rate, iv, and psi threshold based featur · null importance denoising with tree models · high correlation removal with gain ranked retent · multi sheet excel cleaning report export
Use cases
data analysis · database
From the docs

What datanalysis-credit-risk says it does

Credit risk data cleaning and variable screening pipeline for pre-loan modeling.
SKILL.md
Each step is executed independently without deleting original data, facilitating comparative analysis
SKILL.md
npx skills add https://github.com/github/awesome-copilot --skill datanalysis-credit-risk

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7.2k
repo stars37.1k
Security audit3 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorygithub/awesome-copilot

How do I clean raw credit data and screen variables by missing rate, IV, PSI, and correlation before pre-loan model training?

Run an 11-step credit risk data cleaning and variable screening pipeline with IV, PSI, missing rate, and correlation filters.

Who is it for?

Data scientists preprocessing credit risk tabular data with organization splits and out-of-sample holdouts.

Skip if: Skip for non-credit datasets or teams needing live model serving instead of offline feature screening.

When should I use this skill?

User works with raw credit data needing quality assessment, missing analysis, IV/PSI screening, or pre-loan modeling preprocessing.

What you get

Filtered feature sets plus a multi-sheet Excel cleaning report documenting each screening step and organization-level statistics.

  • PSI report
  • variable selection output
  • Excel diagnostics workbook

By the numbers

  • 11-step independent cleaning pipeline
  • Excel report with 15 documented output sheets

Files

SKILL.mdMarkdownGitHub ↗

Data Cleaning and Variable Screening

Quick Start

# Run the complete data cleaning pipeline
python ".github/skills/datanalysis-credit-risk/scripts/example.py"

Complete Process Description

The data cleaning pipeline consists of the following 11 steps, each executed independently without deleting the original data:

1. Get Data - Load and format raw data 2. Organization Sample Analysis - Statistics of sample count and bad sample rate for each organization 3. Separate OOS Data - Separate out-of-sample (OOS) samples from modeling samples 4. Filter Abnormal Months - Remove months with insufficient bad sample count or total sample count 5. Calculate Missing Rate - Calculate overall and organization-level missing rates for each feature 6. Drop High Missing Rate Features - Remove features with overall missing rate exceeding threshold 7. Drop Low IV Features - Remove features with overall IV too low or IV too low in too many organizations 8. Drop High PSI Features - Remove features with unstable PSI 9. Null Importance Denoising - Remove noise features using label permutation method 10. Drop High Correlation Features - Remove high correlation features based on original gain 11. Export Report - Generate Excel report containing details and statistics of all steps

Core Functions

FunctionPurposeModule
get_dataset()Load and format datareferences.func
org_analysis()Organization sample analysisreferences.func
missing_check()Calculate missing ratereferences.func
drop_abnormal_ym()Filter abnormal monthsreferences.analysis
drop_highmiss_features()Drop high missing rate featuresreferences.analysis
drop_lowiv_features()Drop low IV featuresreferences.analysis
drop_highpsi_features()Drop high PSI featuresreferences.analysis
drop_highnoise_features()Null Importance denoisingreferences.analysis
drop_highcorr_features()Drop high correlation featuresreferences.analysis
iv_distribution_by_org()IV distribution statisticsreferences.analysis
psi_distribution_by_org()PSI distribution statisticsreferences.analysis
value_ratio_distribution_by_org()Value ratio distribution statisticsreferences.analysis
export_cleaning_report()Export cleaning reportreferences.analysis

Parameter Description

Data Loading Parameters

  • DATA_PATH: Data file path (best are parquet format)
  • DATE_COL: Date column name
  • Y_COL: Label column name
  • ORG_COL: Organization column name
  • KEY_COLS: Primary key column name list

OOS Organization Configuration

  • OOS_ORGS: Out-of-sample organization list

Abnormal Month Filtering Parameters

  • min_ym_bad_sample: Minimum bad sample count per month (default 10)
  • min_ym_sample: Minimum total sample count per month (default 500)

Missing Rate Parameters

  • missing_ratio: Overall missing rate threshold (default 0.6)

IV Parameters

  • overall_iv_threshold: Overall IV threshold (default 0.1)
  • org_iv_threshold: Single organization IV threshold (default 0.1)
  • max_org_threshold: Maximum tolerated low IV organization count (default 2)

PSI Parameters

  • psi_threshold: PSI threshold (default 0.1)
  • max_months_ratio: Maximum unstable month ratio (default 1/3)
  • max_orgs: Maximum unstable organization count (default 6)

Null Importance Parameters

  • n_estimators: Number of trees (default 100)
  • max_depth: Maximum tree depth (default 5)
  • gain_threshold: Gain difference threshold (default 50)

High Correlation Parameters

  • max_corr: Correlation threshold (default 0.9)
  • top_n_keep: Keep top N features by original gain ranking (default 20)

Output Report

The generated Excel report contains the following sheets:

1. 汇总 - Summary information of all steps, including operation results and conditions 2. 机构样本统计 - Sample count and bad sample rate for each organization 3. 分离OOS数据 - OOS sample and modeling sample counts 4. Step4-异常月份处理 - Abnormal months that were removed 5. 缺失率明细 - Overall and organization-level missing rates for each feature 6. Step5-有值率分布统计 - Distribution of features in different value ratio ranges 7. Step6-高缺失率处理 - High missing rate features that were removed 8. Step7-IV明细 - IV values of each feature in each organization and overall 9. Step7-IV处理 - Features that do not meet IV conditions and low IV organizations 10. Step7-IV分布统计 - Distribution of features in different IV ranges 11. Step8-PSI明细 - PSI values of each feature in each organization each month 12. Step8-PSI处理 - Features that do not meet PSI conditions and unstable organizations 13. Step8-PSI分布统计 - Distribution of features in different PSI ranges 14. Step9-null importance处理 - Noise features that were removed 15. Step10-高相关性剔除 - High correlation features that were removed

Features

  • Interactive Input: Parameters can be input before each step execution, with default values supported
  • Independent Execution: Each step is executed independently without deleting original data, facilitating comparative analysis
  • Complete Report: Generate complete Excel report containing details, statistics, and distributions
  • Multi-process Support: IV and PSI calculations support multi-process acceleration
  • Organization-level Analysis: Support organization-level statistics and modeling/OOS distinction

Related skills

FAQ

How many steps does the pipeline include?

Eleven independent steps from data load through abnormal month filtering, IV/PSI screening, Null Importance denoising, correlation removal, and Excel export.

Does the pipeline delete original data?

No. Each step runs independently without deleting the original dataset to support comparative analysis.

What does the Excel report contain?

Summary plus sheets for organization samples, OOS separation, missing rates, IV/PSI details, noise removal, and correlation drops.

Is Datanalysis Credit Risk safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Data Science & MLanalyticspipelines

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.