Extract data profiling parameters, complete univariate distributions checks, map bivariate correlations on heatmaps, and write business-focused insight reports.
Domain / Environment
Media Streaming / Conda VM
Difficulty
Intermediate (3/5)
Course Module
Exploratory Data Analysis
Deliverables
EDA Report Notebook & Correlation Heatmaps
1. System Architecture & Process Workflow
The diagram below displays the exploratory data analysis workflow. Raw catalogs are loaded, missing entries profiled, and univariate metrics computed. The tables are passed to bivariate correlation calculators, producing a correlation heatmap and statistical insight summaries.
2. Part 1: Step-by-Step Action Items & Key Execution Steps
STEP 1
Activate Python Virtual Environment
Point the terminal execution environment to the course conda sandbox environment.
$ conda activate ds_ai_ml
This targets active libraries to the isolated sandbox directories.
STEP 2
Create Project Folders inside Linux VM
Create a dedicated folder for the project files inside your guest VM home folder directory.
$ mkdir -p ~/Projects/eda_report && cd ~/Projects/eda_report
This initializes the folder structures to save the Python script and outputs.
STEP 3
Save Streaming Media Catalog Dataset
Create a CSV dataset containing streaming catalog entries, content types, duration metrics, ratings, and view counts.
$ nano streaming_catalog.csv
This opens nano editor. Paste the CSV data template from Part 2, press **Ctrl + O** and **Enter** to save, and **Ctrl + X** to exit.
STEP 4
Create visualizer script file in VS Code
Launch VS Code and create a new script file inside the project workspace folder.
Launch VS Code via terminal "code ." -> Right-click in explorer tree -> click New File -> Type: eda_report.py -> Press Enter
This instantiates `eda_report.py` in the workspace editor workspace.
STEP 5
Load Python EDA profiling logic
Paste the data profiling and visualization code into the newly created python script file.
Click eda_report.py -> Paste python code from Part 2 below -> Save file via Ctrl + S
This writes calculations and visualization directives to the script.
STEP 6
Execute EDA script via terminal
Run the validation script using the python engine to compile the visual reports.
$ python eda_report.py
This profiles the dataset, logs summary stats to the console, and exports two charts: `correlation_heatmap.png` and `content_distribution.png`.
STEP 7
Open and verify generated figures
Open the figures using the default Linux desktop photo viewer to review the data trends.
This command loads the image viewer application on the VM desktop to display the plots.
3. Operational Pipeline Architecture
The flowchart below outlines the EDA pipeline. It shows the steps from loading the catalog and profiling columns to generating univariate histograms, computing correlation matrices, and saving files.
4. Part 2: Complete Deliverable Assets & Production Templates
To run the EDA analysis, we need the raw catalog CSV and the Python analysis script. Below is a line-by-line explanation of the code, followed by the combined template files.
Step-by-Step Code Construction
Lines 1 - 4
Import Tabular and Visualization Packages
Include system OS, Pandas, and graphing modules in the code script.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
These imports check system paths and load dataset processing packages, plotting layouts, and seaborn theme styling.
Lines 5 - 12
Verify Dataset Dimensions and Profiling
Load the CSV dataset and print its shape, column types, and missing values.