liveBook · Manning

Data integrity

As explained in Starting Data Analytics with Generative AI and Python

Data integrity is the preservation of data's accuracy, consistency, completeness, and trustworthiness throughout its handling.

Data integrity preserves the relationships between data elements so the dataset remains coherent and meaningful. Before analyzing text, ask whether each review belongs to the right product and order, represents the intended period, and appears only once. section 2.2 section 5.2.1

Protect integrity by checking the dataset systematically:

  • Remove duplicate reviews, including repeated or slightly altered copies that could distort results. section 5.2.1
  • Decide how to handle missing values through imputation, exclusion, or removal. section 5.2.1
  • Check that records are relevant, current, consistently formatted, and written in an expected language. section 5.2.1 section 2.2

A misleading review count

A system accidentally copies one customer’s complaint every second for a full minute. Treating those copies as separate opinions gives that complaint disproportionate weight. Similarly, reviews scraped from a retailer may concern a competitor, or may not be tied to any order. section 5.2.1

How Starting Data Analytics with Generative AI and Python covers it

How deep it goes
Defines integrity through maintained relationships but does not detail validation algorithms.
Examples
Uses product reviews, competitor records, stale data, duplicate complaints, and order links.
What it assumes
Assumes awareness of data preparation while identifying text-specific cleaning and validation decisions.
What you can do after
Evaluate review data for broken relationships, duplication, missingness, irrelevance, and staleness before analysis.
How it connects
Connects data integrity with accuracy, completeness, timeliness, uniqueness, consistency, and data cleaning.

Also explained in

Compare how 18 books explain data integrity →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Starting Data Analytics with Generative AI and Python. The section links point to the parts of the book it draws on.