AI & Data

Data Exploration & Preparation

Module 1

Introduction to data science workflows, data formats, and preparation techniques

Data Exploration & Preparation

Common problems and solutions when dealing with data science projects

Key insight: Up to 80% of a data scientist's time is spent on data preparation!

Data Exploration & Preparation Workflow

The complete journey from raw data to a deployed model:

Data Science Pipeline
THIS COURSE DATA SOURCES CSV files Databases APIs Web pages DATA PREPARATION 1. Collection 2. Cleaning 3. Transformation MACHINE LEARNING Training Evaluate RESULT Production Model Deployed

Problem: Too Many Combinations!

Challenge: Finding the optimal combination of transformations requires systematic experimentation.

What Data Types Can Algorithms Use?

Machine learning algorithms need data in specific formats:

  • Numerical - integers and floats
  • Categorical - labels and categories
Key insight: Text, images, and complex data must be transformed into these types before ML can use them.
DATA TYPES What ML understands NUMERICAL Integer Age: 25, 30, 45 Float Price: 19.99, 42.50 CATEGORICAL Ordinal S → M → L → XL Nominal Red, Blue, Green Boolean Yes / No, True / False

The DataFrame Structure

Feature 1 Feature 2 Feature 3 Target
valuevaluevaluelabel
valuevaluevaluelabel
............

Why This Course?

From Raw Sources to ML-Ready Data
DATA SOURCES JSON Web APIs XML Legacy CSV Spreadsheets Database SQL/NoSQL REST API Live data Web Pages Scraping WHAT YOU'LL LEARN Parse & Extract Clean & Transform Structure & Validate Python • Orange • Pandas ML-READY DataFrame Rows × Columns

Data Exploration: Tools & Methodology

What tools and approaches should we consider?

Tool Pros Cons
Jupyter Interactive, visual Cell order issues, hard to version
Python scripts Reproducible, versionable Less interactive
Orange Visual workflow, no coding Limited customization

Data Exploration with Orange

Installation:

pip install orange3

Your Turn: Data Exploration!

Load the Titanic dataset in Orange and explore:

  1. Load file: titanic_train.csv → How many features? rows?
  2. Identify the target variable (Survived)
  3. Find correlations between features and survival
Suggested Orange Workflow
[FILE] File titanic.csv [DATA] Data Table [DIST] Distributions [CORR] Correlations [STATS] Statistics Class balance Feature links Summary stats Questions to answer: • How many rows? • How many features? • Class distribution? • Key correlations? • Missing values?

Questions?

Data Exploration & Preparation

Next: Data Formats - JSON, XML, CSV

Slide Overview