Get started • Machine learning

Items bought together

Find pairs of items that often appear in the same order or basket.

Sample data

Made-up data. If you have not loaded it yet, ask your assistant:

  • Load https://gotsimplified.com/samples/baskets.csv into my data lake as samples.baskets, replacing it if it already exists.

Download: baskets.csv

Try this

  • Which items are bought together in samples.baskets? Each order is order_id.

Your assistant may word its answers differently each time; the numbers come from your tables.

What goes together?

What is it?

People who buy bread often buy butter. This finds pairs like that.

How does it work?

It looks at each order and counts which items show up together.

Good to know

Together does not mean one causes the other.

Before you start

Load the sample file below into your data lake first.

Make it yours

Your assistant needs the real names. Replace the table and column names in the prompt above with yours. If you are not sure of them, ask first: "Describe my table called orders."

Then ask

Each question builds on the last answer. Ask follow-ups in plain words.

"Which pair is the strongest?"