Загрузка...

Why You NEED to Master CROSS JOINS (Data Interview) ⚔️ | LeetCode 1280 (SQL vs. Pandas)

In this video, we solve "Students and Examinations" (LeetCode 1280), a tricky Data Science interview question asked at companies like Amazon.

The Challenge: How do you report students who attended zero exams? If you just use a standard GROUP BY, those students disappear!

The Solution: I show you how to generate a Cartesian Product (Master List) first to ensure every student/subject pair exists before counting.

SQL Solution: Using CROSS JOIN followed by a LEFT JOIN.
Pandas Solution: Using .merge(how='cross') and filling NaN values.

⏱️ Timestamps:
0:00 - Intro
0:53 - SQL Solution
2:53 - Pandas Solution

Check out my Playlist:
https://www.youtube.com/playlist?list=PLGT-z9cVth9mua-HvnqhN2FQTisyZjQ4B

Subscribe for more Data Science coding challenges!
www.youtube.com/@datahead_girl
#python #pandas #coding #datascience

Видео Why You NEED to Master CROSS JOINS (Data Interview) ⚔️ | LeetCode 1280 (SQL vs. Pandas) канала DataHead Girl
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять