File size: 3,823 Bytes
de644c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f9cf81a
de644c1
 
f9cf81a
de644c1
 
f9cf81a
de644c1
 
 
 
 
 
f9cf81a
de644c1
 
 
 
 
 
 
 
 
 
 
 
 
f9cf81a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de644c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
language:
- en
license: other
license_name: world-bank-microdata-terms
license_link: https://microdata.worldbank.org/index.php/terms-of-use
tags:
- agriculture
- financial-inclusion
- survey-data
- smallholder-farmers
- africa
- nigeria
- tabular
pretty_name: "CGAP Smallholder Survey - Nigeria 2016"
size_categories:
- 1K<n<10K
task_categories:
- tabular-classification
- tabular-regression
---

# CGAP Smallholder Household Survey - Nigeria (2016)

## Dataset Description

Nationally representative household survey of smallholder farming families in **Nigeria**, conducted by the Consultative Group to Assist the Poor (CGAP) in 2016.

### Dataset Summary

| Metric | Value |
|--------|-------|
| **Country** | Nigeria |
| **Year** | 2016 |
| **Households Surveyed** | ~3,000 |
| **Total Records** | 10,927 |

### Tables

| Table | Rows | Columns | Description |
|-------|------|---------|-------------|
| `household` | 3,026 | 272 | Household-level characteristics |
| `single` | 2,773 | 1,223 | Single respondent detailed survey |
| `multiple` | 5,128 | 471 | Repeated measures (members, plots, livestock) |

## Usage

```python
from datasets import load_dataset

# Load household-level data
household = load_dataset("YOUR_USERNAME/cgap-smallholder-nga", "household", split="train")

# Load single respondent data
single = load_dataset("YOUR_USERNAME/cgap-smallholder-nga", "single", split="train")

# Load multiple respondent data
multiple = load_dataset("YOUR_USERNAME/cgap-smallholder-nga", "multiple", split="train")
```

### With Pandas

```python
import pandas as pd
df = pd.read_parquet("hf://datasets/YOUR_USERNAME/cgap-smallholder-nga/household.parquet")
```

## Features

The dataset covers:

- **Demographics**: Household composition, age, gender, education levels
- **Agriculture**: Crops cultivated, land holdings, livestock, farming practices
- **Financial Services**: Bank accounts, mobile money usage, savings groups, credit access
- **Income & Expenditure**: Income sources, consumption patterns
- **Assets**: Household and productive assets
- **Shocks**: Economic shocks and coping mechanisms


## Documentation

### Official CGAP User Guide

For detailed variable definitions, survey methodology, and questionnaire documentation, see the official CGAP user guide:

📖 **[Nigeria User Guide](https://www.cgap.org/sites/default/files/researches/documents/Working-Paper-Smallholder-Household-Survey-Nigeria-User-Guide-Apr-2017.pdf)**

### Data Dictionary

This repository includes comprehensive data dictionaries with statistics for every variable:

- **[DATA_DICTIONARY.md](DATA_DICTIONARY.md)** - Human-readable markdown format
- **[data_dictionary.json](data_dictionary.json)** - Machine-readable JSON format

The data dictionary includes for each variable:
- Data type (numeric/categorical)
- Non-null counts and missing value percentages
- Value ranges (min, max, mean, median) for numeric columns
- Unique value counts and distributions for categorical columns

## Suggested ML Tasks

- Financial inclusion prediction (binary classification)
- Income/wealth classification
- Household segmentation (clustering)
- Agricultural productivity prediction
- Vulnerability/poverty risk assessment

## Source

- **Publisher**: Consultative Group to Assist the Poor (CGAP)
- **Host**: World Bank Microdata Library
- **URL**: https://www.cgap.org/research/data/smallholder-families-data-hub

## Citation

```bibtex
@misc{cgap_smallholder_nga_2016,
  title={CGAP Smallholder Families Household Survey - Nigeria},
  author={{Consultative Group to Assist the Poor}},
  year={2016},
  publisher={World Bank Microdata Library}
}
```

## License

Subject to World Bank Microdata Library [Terms of Use](https://microdata.worldbank.org/index.php/terms-of-use). Intended for research and educational purposes.