Data Cleaning Exercises

Dataset pack

Orders with optional discounts

Order data for a pricing model, where the discount field is often left empty.

Fictional data · UTF-8 CSV, every value quoted so padding and leading zeros survive; empty fields are missing values · free for personal and classroom practice · practise it in Impute with an indicator column.

orders 16 rows × 3 columns

Download orders.csv (Pro)

Data dictionary

id
Unique order ID.
amount
Order amount as text.
discount
Discount amount as text; empty when not recorded.

Values are shown in quotes so leading and trailing spaces are visible. ∅ means the cell is missing. Exercises are also graded on hidden datasets that are never published.