Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Customer Segmentation Using Sets | Sets and Series
Mathematics for Data Science

bookChallenge: Customer Segmentation Using Sets

Task

Swipe to start coding

A company wants to understand its customer base. You are given two lists of customer IDs:

  • new_customers: customers who made their first purchase this month;
  • repeat_customers: customers who have made purchases in previous months.

Follow this steps:

  1. Π‘onvert lists to sets to remove duplicates.
  2. Find all unique customers.
  3. Identify customers who shopped in both categories.
  4. Identify customers who are new only (not repeat customers).

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 1.96

bookChallenge: Customer Segmentation Using Sets

Swipe to show menu

Task

Swipe to start coding

A company wants to understand its customer base. You are given two lists of customer IDs:

  • new_customers: customers who made their first purchase this month;
  • repeat_customers: customers who have made purchases in previous months.

Follow this steps:

  1. Π‘onvert lists to sets to remove duplicates.
  2. Find all unique customers.
  3. Identify customers who shopped in both categories.
  4. Identify customers who are new only (not repeat customers).

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3
single

single

some-alt