BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 4: Data Visualization/Seaborn Relationships1/3
Exercise·7 min·10 XP

Color Points by Segment

Context. Customer visits vs spend — but Basic and Premium customers behave differently. Coloring by segment turns one cloud of dots into two stories.

Your task. Write make_segment_scatter(df) that draws a seaborn scatter of spend over visits, colored by segment using hue, and returns the axes.

Example. hue="segment" — each segment gets its own color and a legend entry.

Notes. The legend appears automatically once hue is set.

Previous
Weekly Visitors Trend
Next
Count Orders by Status