Skip to main content
100%

Shopping Habits

✓ Published1🌍 Public
Mmacgregorm01@gmail.com
Last edited Oct 30, 2024
Created on Sep 4, 2024

This example displays the first row of a shopping habits dataset as a formatted JSON object in a container. It prints the data as a `<pre>` element with a font size of 20 pixels using template literals and `innerHTML`. The dataset, imported from `data.csv` and listed with its full header row, includes columns like age, gender, item purchased, category, location, and review rating. The code first converts several quantitative attributes, such as `Customer_ID`, `Age`, and `Purchase_Amount_USD`, to numbers using the unary plus operator before rendering the sample.

AI-generated description

The Shopping Habits Dataset

The description comes from the original dataset source:

The Shopping Habits Dataset provides insight into consumer preferences, tendencies, and patterns during their shopping experiences. The dataset includes a range of variables, including demographic information, purchase history, product preferences, shopping frequency, and online/offline shopping behavior. This data allows analysts and researchers to further understand consumer decision-making processes, helping businesses to craft targeted marketing strategies, optimizing product offerings, and enhancing overall customer satisfaction.

Five tasks to be completed on this dataset:

  1. I want to identify which states have the best review ratings.
  2. I want to visualize the distribution of items purchased by gender.
  3. I want to understand which items and categories are being purchased most in each season.
  4. I want to determine if there is a correlation between the purchase amount and presence of discounts or promo codes.
  5. I want to be able to see if certain colors of each item are being purchased most.
MIT Licensed

Similar vizzes