# CFPB complaint-resolution teaching extract

This real public dataset supports a hypothetical management exercise about case preparation and staffing. It does not authorize deciding whether a customer deserves relief.

## Source and reuse

Source: Consumer Financial Protection Bureau, Consumer Complaint Database. Retrieved November 6, 2026. The official database makes its published data freely available for use, analysis and reuse. The API identifies the data license as CC0. Public company names are retained. No consumer narratives, complaint IDs, ZIP codes, age or military-status tags, account information or direct personal identifiers are in this extract.

- Database: https://www.consumerfinance.gov/data-research/consumer-complaints/
- Field definitions: https://cfpb.github.io/api/ccdb/fields.html
- Public-data policy: https://www.consumerfinance.gov/complaint/data-use/
- Response definitions: https://files.consumerfinance.gov/f/documents/cfpb_2025-cr-annual-report_2026-03.pdf
- API source and documentation: https://github.com/cfpb/ccdb5-api

## Exact extraction

Public CSV request:

https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/?format=csv&date_received_min=2024-01-01&date_received_max=2024-12-31&product=Credit+card&no_aggs=true&no_highlight=true

The returned CSV contains 75,989 credit-card complaints received in 2024, below the API's 100,000-record filtered-export cap. Source SHA-256: `0876ee48ac5b1521e1f2bfaa22f4d222d702bd95063e160f78961b95445809d2`.

Keep only these three company-reported substantive closure categories: Closed with explanation, Closed with monetary relief, and Closed with non-monetary relief. This retains 75,964 records and excludes 25 untimely responses. Do not reinterpret excluded or unfinished outcomes as an explanation or as an unsuccessful complaint.

Sort eligible records by the hexadecimal SHA-256 of `emba560-42:` followed by the original Complaint ID, and retain the first 12,000. This reproducible sample does not impose a quota on the outcomes. Then retain the seven listed fields, rename Company response to consumer to Resolution, remove the source IDs, and sort by Date received, Company and Issue. The upstream record can be revised, so this frozen file, not a new live query, controls the classroom results.

Teaching CSV SHA-256: `5c2f28b4a3e70067070253697a746c46d9647e61d859b2340d5a97124fc477d3`.

## Data dictionary

| Field | Meaning and modeling role |
|---|---|
| Date received | Public receipt timestamp. Can support calendar features. It is not a closure timestamp or a measure of handling time. |
| Sub-product | Consumer-identified credit-card subtype. Categorical input, not a numeric rank. |
| Issue | Consumer-identified complaint issue. Categorical input. |
| Company | Public name of the company receiving the complaint. Describes institutions and their historical practices, not a causal company effect. |
| State | Consumer-provided state or territory abbreviation. There are 28 missing values. Location can act as a proxy and needs fairness review before use. |
| Submitted via | Submission channel. It can describe access and selection differences, not the causal effect of choosing a channel. |
| Resolution | Company-reported historical closure category, the one multiclass outcome being predicted. |

Sample outcome counts: explanation 7,354; non-monetary relief 3,000; monetary relief 1,646. Total 12,000. These categories describe different actions, not an ordered rating scale. The majority-category share is 7,354 / 12,000 = 61.2833%. The notebook computes its operational baseline from training records only.

There are zero identical seven-field rows. Similar complaints can be legitimate separate records. No consumer identifier is available for checking repeated people across groups.

## Limits that must remain with the case

The public complaints are not a representative sample of all customers or all complaints. This extract further conditions on credit cards, receipt in 2024, and one of three reported closure categories. Findings apply to that included set, not to every possible incoming case. The source does not establish whether a complaint was accurate, whether the chosen remedy was fair, or whether the consumer was satisfied.

Closure and label-availability dates are not supplied. Random training/validation/testing groups support a retrospective same-source comparison, not a prospective backtest of decisions that could have been made on each receipt date. A live system needs dated mature labels, a genuinely later evaluation, a way to recognize cases outside these categories, and human review.

Do not use company public response, timeliness, dispute information, or other post-resolution fields as predictors. The supplied extract already omits them. Predicting a response does not show what changing an input would cause. Financial relief amounts, handling cost, staffing needs per case, and customer outcomes are not measured, so no financial return is established.
