pySohila’s learning labPYTHON / FIELD GUIDE 01

Build on your SQL & BI skills / CORE PATH

Joins, nulls & grain

A join is a cardinality decision, not just a merge call.

3h planning budget · Sohila Khaled Abbas · Reviewed 2026-11-01

Use your star/galaxy modeling knowledge to prevent multiplied facts.

Understand the idea

Declare the expected relationship before merging: one-to-one, many-to-one or many-to-many. Validate reference-key uniqueness before a join; counting rows only after multiplication can hide the reason a KPI changed.

Check unmatched keys in both directions and decide what an unknown dimension means. An inner join may discard legitimate facts, while filling every missing value with zero invents measurements.

What to learn

Practice on your own data

Join a fact fixture to a duplicate dimension and make the validation fail.

Practice this lesson in the Python lab →

EXIT CHECK

No total changes silently; unmatched keys and duplicated keys have separate reports.

Prerequisites

DataFrames through a SQL lens

Video and playlist companions

Choose one explanation for the concept, then attempt the practice. These are topic mappings, not a claim that every linked lesson covers every outcome.

كورس Python منحة ITI

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

تحليل البيانات في بايثون (الدورة المصغرة) | Python for Data Analysis (Crash Course)

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Python for Data Analysis

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Data Exploration and Preparation

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Sources and further reading

Track progress on this topic → · Markdown source ↗