liveBook · Manning

Preprocessing

As explained in Starting Data Analytics with Generative AI and Python

Data preprocessing is the transformation and preparation of raw data into a form suitable for analysis or modeling.

Preprocessing transforms raw data into a form suitable for analysis or modeling. Begin with the business question, then prepare data that represents the relevant slice of reality and supports reliable analysis. section 2.2 section 3.2

Before treating a dataset as ready, check whether it is:

  • Relevant to the specific business question rather than merely available. section 2.2
  • Accurate, complete, timely, unique, consistent, and internally coherent. section 2.2
  • Structured so that missing values are handled deliberately, not automatically. section 3.2
  • Prepared with appropriate data types and any variables needed for the analysis. section 3.2

A practical workflow combines relevant tables, cleans the resulting dataset, and creates analysis-ready variables. For a business dataset, this can mean joining orders, customers, products, payments, reviews, sellers, and category translations before examining sales, revenue, delivery timing, or review scores. section 3.2

A delivery-time analysis

To study delivery performance, merge the relevant order, customer, item, product, payment, review, and seller records. Handle missing values according to context, convert timestamps and numeric fields, and create a delivery-time difference between actual and estimated delivery. Then inspect summary statistics and visualizations before drawing conclusions. section 3.2 section 3.0

Cleaning is not a label to accept on trust. Inspect the original files, verify claims about quality, and confirm that the prepared structure and values support the question being asked. section 2.2

How Starting Data Analytics with Generative AI and Python covers it

How deep it goes
Explains quality checks, table merging, missing-value handling, type conversion, and derived variables, then stops before detailed modeling.
Examples
Uses merged order datasets, delivery-time differences, missing-value decisions, converted timestamps, summary statistics, and visualizations.
What it assumes
Assumes a defined business question and basic understanding of datasets, tables, variables, and analysis goals.
What you can do after
Apply preprocessing by validating quality, combining relevant tables, cleaning fields, and creating variables for analysis.
How it connects
Connects data quality with descriptive analysis, visualization, statistical inference, and modeling.

Also explained in

Compare how 22 books explain preprocessing →

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.