Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 35 new columns ({'day_of_week', 'campaign_id', 'impressions', 'platform', 'campaign_name', 'objective', 'date', 'funnel_stage', 'post_hour', 'month', 'country', 'is_holiday (text)', 'month_name', 'account_type', 'theme', 'ad_group_id', 'placement', 'revenue', 'market_tier', 'ad_group_name', 'account', 'ad_name', 'clicks', 'is_weekend (text)', 'conversions', 'season', 'frequency', 'ad_id', 'year', 'spend', 'is_weekend', 'is_holiday', 'reach', 'video_views', 'week'}) and 3 missing columns ({'description', 'type', 'column'}).

This happened while the csv dataset builder was generating data using

hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset/digital_marketing_dataset_30k.csv (at revision aaa929af5f0b69f6c49ab409f718ff836825c744), [/tmp/hf-datasets-cache/medium/datasets/42862946427398-config-parquet-and-info-jason1966-alinaboulsi_dig-e8dc15f0/hub/datasets--jason1966--alinaboulsi_digital-marketing-performance-dataset/snapshots/aaa929af5f0b69f6c49ab409f718ff836825c744/data_dictionary.csv (origin=hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset@aaa929af5f0b69f6c49ab409f718ff836825c744/data_dictionary.csv), /tmp/hf-datasets-cache/medium/datasets/42862946427398-config-parquet-and-info-jason1966-alinaboulsi_dig-e8dc15f0/hub/datasets--jason1966--alinaboulsi_digital-marketing-performance-dataset/snapshots/aaa929af5f0b69f6c49ab409f718ff836825c744/digital_marketing_dataset_30k.csv (origin=hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset@aaa929af5f0b69f6c49ab409f718ff836825c744/digital_marketing_dataset_30k.csv)]

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              date: string
              year: int64
              month: int64
              month_name: string
              week: int64
              day_of_week: string
              post_hour: int64
              season: string
              is_holiday: int64
              is_holiday (text): string
              is_weekend: int64
              is_weekend (text): string
              country: string
              market_tier: string
              account: string
              account_type: string
              platform: string
              placement: string
              funnel_stage: string
              objective: string
              theme: string
              campaign_id: string
              campaign_name: string
              ad_group_id: string
              ad_group_name: string
              ad_id: string
              ad_name: string
              spend: double
              impressions: int64
              reach: int64
              frequency: double
              clicks: int64
              conversions: int64
              revenue: double
              video_views: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 4357
              to
              {'column': Value('string'), 'type': Value('string'), 'description': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 35 new columns ({'day_of_week', 'campaign_id', 'impressions', 'platform', 'campaign_name', 'objective', 'date', 'funnel_stage', 'post_hour', 'month', 'country', 'is_holiday (text)', 'month_name', 'account_type', 'theme', 'ad_group_id', 'placement', 'revenue', 'market_tier', 'ad_group_name', 'account', 'ad_name', 'clicks', 'is_weekend (text)', 'conversions', 'season', 'frequency', 'ad_id', 'year', 'spend', 'is_weekend', 'is_holiday', 'reach', 'video_views', 'week'}) and 3 missing columns ({'description', 'type', 'column'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset/digital_marketing_dataset_30k.csv (at revision aaa929af5f0b69f6c49ab409f718ff836825c744), [/tmp/hf-datasets-cache/medium/datasets/42862946427398-config-parquet-and-info-jason1966-alinaboulsi_dig-e8dc15f0/hub/datasets--jason1966--alinaboulsi_digital-marketing-performance-dataset/snapshots/aaa929af5f0b69f6c49ab409f718ff836825c744/data_dictionary.csv (origin=hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset@aaa929af5f0b69f6c49ab409f718ff836825c744/data_dictionary.csv), /tmp/hf-datasets-cache/medium/datasets/42862946427398-config-parquet-and-info-jason1966-alinaboulsi_dig-e8dc15f0/hub/datasets--jason1966--alinaboulsi_digital-marketing-performance-dataset/snapshots/aaa929af5f0b69f6c49ab409f718ff836825c744/digital_marketing_dataset_30k.csv (origin=hf://datasets/jason1966/alinaboulsi_digital-marketing-performance-dataset@aaa929af5f0b69f6c49ab409f718ff836825c744/digital_marketing_dataset_30k.csv)]
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

column
string
type
string
description
string
date
string (YYYY-MM-DD)
Date of the record (daily granularity). This field is used for analytical grouping, filtering, and time-based analysis.
year
int
Calendar year extracted from date. This field is used for analytical grouping, filtering, and time-based analysis.
month
int
Month number (1–12). This field is used for analytical grouping, filtering, and time-based analysis.
month_name
string
Month name abbreviation (Jan–Dec). This field is used for analytical grouping, filtering, and time-based analysis.
week
int
ISO week number. This field is used for analytical grouping, filtering, and time-based analysis.
day_of_week
string
Day of week (Mon–Sun). This field is used for analytical grouping, filtering, and time-based analysis.
post_hour
int
Hour of day (0–23) when the ad/post is assumed to run/peak. This field is used for analytical grouping, filtering, and time-based analysis.
season
string
Season derived from month (Winter/Spring/Summer/Fall). This field is used for analytical grouping, filtering, and time-based analysis.
is_holiday
int (0/1)
Simple holiday flag (educational approximation). This field is used for analytical grouping, filtering, and time-based analysis.
is_weekend
int (0/1)
Weekend flag (Sat/Sun). This field is used for analytical grouping, filtering, and time-based analysis.
country
string
Market/country label. This field is used for analytical grouping, filtering, and time-based analysis.
market_tier
string
Tier 1/2/3 market categorization. This field is used for analytical grouping, filtering, and time-based analysis.
account
string
Advertiser/account name (synthetic). This field is used for analytical grouping, filtering, and time-based analysis.
account_type
string
Brand or Creator (synthetic classification). This field is used for analytical grouping, filtering, and time-based analysis.
platform
string
Advertising platform (Meta, Google Search, etc.). This field is used for analytical grouping, filtering, and time-based analysis.
placement
string
Placement/surface within the platform. This field is used for analytical grouping, filtering, and time-based analysis.
funnel_stage
string
Awareness / Consideration / Conversion. This field is used for analytical grouping, filtering, and time-based analysis.
objective
string
Campaign objective (Reach, Traffic, Leads, Sales, etc.). This field is used for analytical grouping, filtering, and time-based analysis.
theme
string
Creative/theme label (Promo, Educational, Retargeting, etc.). This field is used for analytical grouping, filtering, and time-based analysis.
campaign_id
string
Synthetic campaign identifier. This field is used for analytical grouping, filtering, and time-based analysis.
campaign_name
string
Synthetic campaign name encoding key attributes. This field is used for analytical grouping, filtering, and time-based analysis.
ad_group_id
string
Synthetic ad group identifier. This field is used for analytical grouping, filtering, and time-based analysis.
ad_group_name
string
Synthetic ad group name. This field is used for analytical grouping, filtering, and time-based analysis.
ad_id
string
Synthetic ad identifier. This field is used for analytical grouping, filtering, and time-based analysis.
ad_name
string
Synthetic ad name. This field is used for analytical grouping, filtering, and time-based analysis.
spend
float
Spend in USD. This field is used for analytical grouping, filtering, and time-based analysis.
impressions
int
Number of impressions. This field is used for analytical grouping, filtering, and time-based analysis.
reach
int
Estimated unique reach (<= impressions). This field is used for analytical grouping, filtering, and time-based analysis.
frequency
float
Impressions per reached user (impressions/reach). This field is used for analytical grouping, filtering, and time-based analysis.
clicks
int
Number of clicks. This field is used for analytical grouping, filtering, and time-based analysis.
conversions
int
Number of conversions (sales/leads depending on objective). This field is used for analytical grouping, filtering, and time-based analysis.
revenue
float
Revenue proxy for Sales/Leads (0 for awareness/traffic). This field is used for analytical grouping, filtering, and time-based analysis.
video_views
int
Video views proxy for video-heavy placements/objectives. This field is used for analytical grouping, filtering, and time-based analysis.
cpm
float
Cost per 1,000 impressions = spend/impressions*1000. This field is used for analytical grouping, filtering, and time-based analysis.
ctr
float
Click-through rate = clicks/impressions. This field is used for analytical grouping, filtering, and time-based analysis.
cpc
float
Cost per click = spend/clicks. This field is used for analytical grouping, filtering, and time-based analysis.
conversion_rate
float
Conversion rate = conversions/clicks. This field is used for analytical grouping, filtering, and time-based analysis.
cpa_cpo
float
Cost per acquisition/order = spend/conversions. This field is used for analytical grouping, filtering, and time-based analysis.
roas
float
Return on ad spend = revenue/spend. This field is used for analytical grouping, filtering, and time-based analysis.
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
End of preview.

Digital Marketing Performance Dataset

A Synthetic, Benchmark-Based Dataset for Multi-Platform Marketing Analytics & BI

Dataset Info

  • Source: Kaggle
  • Original Size: 1.83 MB
  • Kaggle Downloads: 145
  • Files: 3

Files

  • README_DATASET.md
  • data_dictionary.csv
  • digital_marketing_dataset_30k.csv

Mirrored from Kaggle

Downloads last month
38