Datasets

Four datasets ship with the package. Each is read on first use and returned as a fresh copy, so editing one in a script never changes the next.

podracing_survey

Simulated pod-racing fan survey.

A fictional consumer-feedback survey from a Boonta Eve-style pod-racing meeting, an affectionate Star Wars parody used throughout the ezrsurvey examples and tests. A latent enjoyment drives correlated attribute ratings and the recommend score, the demographics use international-standard categories (ISO/IEC 5218 sex, ISCED education, ILO labour-force status, ISIC sectors, ISO 3166 countries), and the multi-select, sponsor and open-text columns mirror the shapes the helpers consume. Blanks and “Prefer not to answer” responses are sprinkled in so cleaning helpers have something to do. A DataFrame with 1,000 rows and 32 columns: respondent_id, collector, demo_age, demo_gender, demo_edu, demo_country, region, demo_job, demo_sector, race_attended, fav_driver, nps_value (0-10), satis_return, six worded ratings_* columns (Very bad .. Very good), five motivations_* multi-select columns, partner_recall_* and partner_likeability_* for three sponsors, and the open-text nps_com and show_com.

respondent_id collector demo_age demo_gender demo_edu demo_country region demo_job demo_sector race_attended fav_driver nps_value satis_return ratings_atmosphere ratings_commentary ratings_safety ratings_speed ratings_value ratings_venue motivations_speed motivations_drivers motivations_betting motivations_social motivations_tradition partner_recall_PodTech partner_likeability_PodTech partner_recall_BanthaBrew partner_likeability_BanthaBrew partner_recall_JawaJuice partner_likeability_JawaJuice nps_com show_com
R00001 panel 35 Male Bachelor or equivalent Sweden Europe Student Arts and entertainment Andobi Mountain Run Ody Mandrell 10 Very likely Very good Ok Ok Very good Good Good For the speed and the thrill Likeable Sponsor Likeable Don’t know this brand Likeable Dud Bolt’s grit and determination are inspiring qualities.
R00002 in_app 29 Male Bachelor or equivalent United Kingdom Europe Student Education Boonta Eve Classic Ben Quadinaros 6 Not sure Bad Very bad Bad Bad Bad Bad For the speed and the thrill A day out with friends and family Don’t know this brand Not a sponsor Very likeable Sponsor Likeable
R00003 email 16 Male Upper secondary Brazil Latin America Employed part-time Information and communication Phoebos Memorial Run Sebulba 10 Not sure Very good Good Very good Very good Good Good For the speed and the thrill To support a favourite driver A day out with friends and family Sponsor Likeable Not a sponsor Sponsor Very likeable Ody Mandrell’s season trajectory looks very positive. The evening racing under lights was incredibly atmospheric.

shopping_survey

Simulated historical shopping-behaviour survey.

A fictional survey of patrons of a turn-of-the-century (c. 1905) general emporium, written in an Edwardian register for colour. A latent satisfaction drives the worded attribute ratings and the recommend score together. A DataFrame with 800 rows and 25 columns: patron_id, demo_age, demo_gender, demo_country, region, social_class, occupation, household_size, weekly_spend (shillings), payment, transport, visit_frequency (Never .. Always), recommend (0-10), five worded ratings_* columns, six reasons_* multi-select columns and the open-text comment.

patron_id demo_age demo_gender demo_country region social_class occupation household_size weekly_spend payment transport visit_frequency recommend ratings_goods ratings_service ratings_credit ratings_delivery ratings_value reasons_price reasons_quality reasons_credit reasons_proximity reasons_variety reasons_service comment
P0001 49 Female United Kingdom Europe Lower middle class Farmer 4 9.9 Cash Bicycle Rarely 8 Very good Good Good Ok Ok Fair prices Near to home Variety on offer The manager’s politeness did not extend to flexibility regarding existing prices or terms.
P0002 28 Female United Kingdom Europe Upper class Governess 3 34.7 On account Omnibus Sometimes 9 Very good Very good Good Good Very good Fair prices Quality of the goods Near to home The draper’s calico, though modestly priced, has proven durable through many years of use.
P0003 24 Male Australia Oceania Poor Schoolteacher 6 26.7 Cash On foot Often 6 Ok Bad Very bad Ok Very bad Quality of the goods Near to home

country_region

Country to region lookup.

Maps country names to a world region and a finer subregion, used by recode_region() and add_region(). A DataFrame with 255 rows: country, iso2 (ISO 3166-1 alpha-2, missing for Kosovo), iso3, region and subregion. Namibia’s alpha-2 code is the two letters “NA”, not a missing value.

country iso2 iso3 region subregion
Algeria DZ DZA Africa Africa
Angola AO AGO Africa Africa
Benin BJ BEN Africa Africa

currency_rates

Currency exchange-rate snapshot.

A dated, approximate table of exchange rates used by convert_currency() and add_currency() when no custom rates are supplied: currency (ISO 4217 code), name, and per_usd (units of the currency per 1 US dollar). Not live rates. The snapshot date is in currency_rates.attrs[“snapshot_date”].

currency name per_usd
USD US Dollar 1
EUR Euro 0.92
GBP British Pound 0.79