Customer Data from the Contoso Dataset
Source: R/data.R
This dataset contains information about customers from the Contoso dataset, including demographic details, geographical information, contact information, and other personal attributes. It provides insights into customer profiles, including location, age, occupation, and more.
Usage
customerDetails
Each row is one customer. Only customers that placed at least one order are included, so every customer_key here appears in sales.
Format
A data frame with 3,165 rows and 24 columns:
- customer_key
-
doubleUnique identifier for each customer. A primary key: unique and never missing. - geo_area_key
-
doubleUnique identifier for the geographical area the customer resides in. - start_date
-
DateDate when the customer relationship began. - end_date
-
DateDate when the customer relationship ended, if applicable. - continent
-
characterThe continent where the customer resides. - gender
-
characterThe gender of the customer (e.g., ‘Male’, ‘Female’). - title
-
characterThe title of the customer (e.g., ‘Mr.’, ‘Ms.’). - given_name
-
characterThe given (first) name of the customer. - middle_initial
-
characterThe middle initial of the customer, if applicable. - surname
-
characterThe surname (last name) of the customer. - street_address
-
characterThe street address of the customer. - city
-
characterThe city where the customer resides. - state
-
characterThe state or province where the customer resides. - state_full
-
characterThe full name of the state or province. - zip_code
-
characterThe postal (ZIP) code of the customer’s address. - country
-
characterThe country where the customer resides, using the country code. - country_full
-
characterThe full name of the country where the customer resides. - birthday
-
DateThe date of birth of the customer. - age
-
doubleThe age of the customer. - occupation
-
characterThe customer’s occupation or profession. - company
-
characterThe company the customer is associated with, if applicable. - vehicle
-
characterThe type or make of vehicle the customer owns or drives. - latitude
-
doubleThe latitude of the customer’s address. - longitude
-
doubleThe longitude of the customer’s address.
Changed in 2.2.0
Up to version 2.1.0 this table was built by joining the customer catalogue onto sales, which repeated each customer once per sales line they appeared on: 7,794 rows for 3,165 customers. customer_key was therefore not unique and any join to this table silently multiplied rows. The duplicates have been collapsed. No attribute varied within a customer, so nothing was lost.
Source
https://github.com/sql-bi/Contoso-Data-Generator-V2-Data/releases/tag/ready-to-use-data