Olaroti commited on
Commit
eb5281c
·
verified ·
1 Parent(s): 8bc6830

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +118 -98
README.md CHANGED
@@ -1,123 +1,143 @@
1
  ---
2
  license: cc-by-4.0
 
 
3
  task_categories:
4
  - tabular-classification
5
  - tabular-regression
6
- language:
7
- - en
8
- tags:
9
- - financial-inclusion
10
- - fintech
11
- - africa
12
- - synthetic-data
13
- - sub-saharan-africa
14
- - credit-access
15
- - synthetic
16
  size_categories:
17
  - 10K<n<100K
18
- data_type: synthetic
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
- > ⚠️ **Synthetic dataset** — Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference.
22
-
23
- # Credit Access Patterns in Africa
24
-
25
- Synthetic dataset modeling credit access, approval, and repayment patterns across 15 Sub-Saharan African countries from 2018-2025.
26
-
27
- ## Dataset Description
28
-
29
- This dataset simulates individual-level credit seeking behavior, application outcomes, and repayment patterns. It captures the spectrum of formal and informal credit sources, from commercial banks to family loans, and the barriers faced by those seeking credit.
30
-
31
- ### Key Statistics
32
-
33
- | Metric | Value |
34
- |--------|-------|
35
- | Total Records | 15,000 |
36
- | Countries | 15 |
37
- | Time Period | 2018-2025 |
38
- | Credit Need Rate | ~40% |
39
- | Formal Credit Access | ~15% |
40
- | Approval Rate (formal) | ~45% |
41
- | Approval Rate (informal) | ~75% |
42
- | Avg Loan Amount | $500-2,000 USD |
43
- | Interest Rate Range | 5-120% APR |
44
-
45
- ### Coverage by Scenario
46
-
47
- - `low_burden`: 4,000 records
48
- - `moderate_burden`: 5,000 records
49
- - `high_burden`: 6,000 records
50
-
51
- ## Column Descriptions
52
-
53
- | Column | Type | Description |
54
- |--------|------|-------------|
55
- | country | string | One of 15 SSA countries |
56
- | year | int | Year (2018-2025) |
57
- | urban_rural | string | Urban or rural location |
58
- | gender | string | Male or female |
59
- | age | int | Age in years (18-70) |
60
- | age_group | string | Age bracket |
61
- | income_quintile | string | Income group (lowest to highest) |
62
- | education | string | Education level |
63
- | employment_status | string | Employment category |
64
- | monthly_income_usd | float | Monthly income in USD |
65
- | income_stability | int | Income stability score (1-10) |
66
- | credit_history | string | Credit history quality |
67
- | has_bank_account | int | Has bank account (0/1) |
68
- | credit_score | int | Credit score (0-850) |
69
- | credit_need | int | Needs credit (0/1) |
70
- | preferred_credit_source | string | Preferred lender type |
71
- | loan_amount_requested_usd | float | Requested loan amount |
72
- | collateral_available | string | Collateral type |
73
- | loan_purpose | string | Purpose of loan |
74
- | approved | int | Loan approved (0/1) |
75
- | loan_disbursed_usd | float | Disbursed loan amount |
76
- | interest_rate | float | Annual interest rate |
77
- | loan_term_months | int | Loan term in months |
78
- | monthly_payment_usd | float | Monthly payment |
79
- | repayment_status | string | Current repayment status |
80
- | rejection_reason | string | Reason for rejection |
81
- | scenario | string | Burden scenario label |
82
-
83
- ## Usage Example
84
 
85
  ```python
86
- import pandas as pd
87
 
88
- # Load the combined dataset
89
- df = pd.read_csv("credit_access_combined.csv")
90
 
91
- # Analyze credit sources
92
- sources = df[df['credit_need'] == 1]['preferred_credit_source'].value_counts()
 
 
 
93
 
94
- # Predict loan approval
95
- from sklearn.ensemble import RandomForestClassifier
96
- from sklearn.model_selection import train_test_split
97
 
98
- seekers = df[df['credit_need'] == 1].copy()
99
- features = ['age', 'credit_score', 'income_stability', 'has_bank_account', 'collateral_available']
100
- X = pd.get_dummies(seekers[features], drop_first=True)
101
- y = seekers['approved']
102
 
103
- X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
104
- model = RandomForestClassifier().fit(X_train, y_train)
105
- print(f"Accuracy: {model.score(X_test, y_test):.2f}")
 
106
  ```
107
 
108
- ## Research Sources
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
- - World Bank Global Findex Database 2025
111
- - IMF Financial Access Survey 2024
112
- - FSD Kenya credit market research 2024
113
- - CGAP credit reporting research
114
 
115
  ## Citation
116
 
117
  ```bibtex
118
- @dataset{credit_access_africa_2025,
119
- title={Credit Access Patterns in Africa},
120
- year={2025},
121
- note={Synthetic dataset based on World Bank Findex and IMF data}
 
 
 
122
  }
123
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ language:
4
+ - en
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
+ multilinguality: monolingual
 
 
 
 
 
 
 
 
 
9
  size_categories:
10
  - 10K<n<100K
11
+ tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "economics-finance"
17
+ - "csv"
18
+ - "tabular"
19
+ - "text"
20
+ - "financial-inclusion"
21
+ - "fintech"
22
+ - "synthetic-data"
23
+ - "sub-saharan-africa"
24
+ - "credit-access"
25
+ - "synthetic"
26
+ - "financial"
27
+ pretty_name: "Africa Synth Financial Inclusion Credit Access Patterns Africa All | Africa (Electric Sheep Africa metadata inventory)"
28
  ---
29
 
30
+ # Africa Synth Financial Inclusion Credit Access Patterns Africa All | Africa (Electric Sheep Africa metadata inventory)
31
+
32
+ **Size category:** `10K<n<100K` - **Formats:** `csv` - **Sector:** economics_finance - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
33
+
34
+ ![size](https://img.shields.io/badge/size-10K%3Cn%3C100K-blue)
35
+ ![sector](https://img.shields.io/badge/sector-economics_finance-green)
36
+ ![downloads](https://img.shields.io/badge/HF_downloads-78-orange)
37
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
38
+
39
+ ## TL;DR
40
+
41
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
42
+
43
+ ## What This Dataset Covers
44
+
45
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
46
+
47
+ Dataset context from the existing Hugging Face card: ⚠️ Synthetic dataset — Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference. Credit Access Patterns in Africa Synthetic dataset modeling credit access, approval, and repayment patterns across 15 Sub-Saharan African countries from 2018-2025. Dataset Description This dataset simulates individual-level credit seeking behavior, application outcomes, and repayment patterns. It captures the spectrum of… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all.
48
+
49
+ ## Dataset Profile
50
+
51
+ | Field | Value |
52
+ |---|---|
53
+ | Hugging Face repo | [`electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all`](https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all) |
54
+ | Sector | economics_finance |
55
+ | Topic tags | financial-inclusion, fintech, synthetic-data, sub-saharan-africa, credit-access, synthetic |
56
+ | Modalities | `tabular`, `text` |
57
+ | Formats | `csv` |
58
+ | Size category | `10K<n<100K` |
59
+ | Countries | Africa-wide or source-defined African coverage |
60
+ | ISO3 coverage | `not declared` |
61
+ | Last modified on HF | `2026-04-14 22:53:30+00:00` |
62
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
63
+
64
+ ## How To Read This Dataset
65
+
66
+ - Start from the repository files and the dataset viewer when available.
67
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
68
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
69
+ - Preserve missing values until you have a defensible imputation rule.
70
+
71
+ ## Usage
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  ```python
74
+ from datasets import load_dataset
75
 
76
+ ds = load_dataset("electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all")
77
+ print(ds)
78
 
79
+ split_name = next(iter(ds))
80
+ table = ds[split_name]
81
+ print(table.features)
82
+ print(table[:3])
83
+ ```
84
 
85
+ ### Convert To Pandas When Tabular
 
 
86
 
87
+ ```python
88
+ from datasets import Dataset
 
 
89
 
90
+ first_split = ds[next(iter(ds))]
91
+ if isinstance(first_split, Dataset):
92
+ df = first_split.to_pandas()
93
+ print(df.head())
94
  ```
95
 
96
+ ## Data Quality Notes
97
+
98
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
99
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
100
+ - Metadata gaps from the inventory: country, upstream_publisher.
101
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
102
+
103
+ ## Source And Provenance
104
+
105
+ - **Source context:** Electric Sheep Africa metadata inventory
106
+ - **Publisher/source attribution:** Public dataset metadata
107
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
108
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all](https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all)
109
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
110
+
111
+ ## Suggested Analyses
112
 
113
+ - Inspect schema and missingness before modeling.
114
+ - Profile variables by geography, time, and subgroup columns where present.
115
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
116
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
117
 
118
  ## Citation
119
 
120
  ```bibtex
121
+ @misc{electric_sheep_africa_africa_synth_financial_inclusion_credit_access_patterns_africa_all_2026,
122
+ title = {Africa Synth Financial Inclusion Credit Access Patterns Africa All | Africa (Electric Sheep Africa metadata inventory)},
123
+ author = {Public dataset metadata},
124
+ year = {2026},
125
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all},
126
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
127
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-synth-financial-inclusion-credit-access-patterns-africa-all}}
128
  }
129
  ```
130
+
131
+ ## License
132
+
133
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
134
+
135
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
136
+
137
+ ## About Electric Sheep Africa
138
+
139
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
140
+
141
+ ---
142
+
143
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.