Data cleaning and preparation

Introduction to data identification, selection, extraction and validation techniques

In the era of big data, managing and processing large datasets stored in repositories is critical for informed decision-making. Effective techniques for identifying, selecting, extracting and validating data ensure that the information retrieved is accurate, relevant and usable. Key approaches include:

  • Downloading datasets: Accessing data in various formats (e.g., CSV, JSON, XML) from repositories to analyze and integrate into systems.
  • SQL functions: Using commands like SELECT, FROM, WHERE, ORDER BY, and INNER JOIN to retrieve, filter, sort, and link data from relational databases efficiently.
  • Boolean operators: Enhancing query precision by applying AND, OR, and NOT operators in WHERE clauses to refine data filtering.
  • Validation techniques: Ensuring data authenticity through checks like:
    • Existence checking: Verifying the presence of required data.
    • Type checking: Confirming data types match predefined formats (e.g., numeric, text).
    • Range checking: Ensuring data values fall within acceptable boundaries.

These techniques are integral for maintaining data integrity and ensuring meaningful insights in large-scale data analysis.

This 10-minute video is a great resource for seeing these techniques in action with a sample dataset.

Some of the key things covered.

  • Removing Duplicates: Use the 'Remove Duplicates' tool on the Data tab to ensure data integrity by deleting redundant records so that each row is a unique entry.
  • Trimming Whitespace: Use the TRIM function to remove invisible leading, trailing, and double spaces that often cause errors during data manipulation and searching.
  • Handling Missing Values (Blanks): Use 'Go To Special' to select all blank cells at once and fill them with a placeholder like 'N/A' or 'TBA' using CTRL + Enter to maintain a complete dataset.
  • Data Validation: Set up drop-down lists to restrict user input, which prevents 'dirty data' (like typos) from entering the system in the first place.
  • Error Handling with IFERROR: Wrap formulas in IFERROR to replace technical error codes (e.g., #DIV/0!) with meaningful values like '0' or 'Missing', making the data ready for visualization.
  • Find and Replace (CTRL + H): Perform bulk corrections to standardise terms or remove unwanted characters across the entire dataset instantly.