Tarek Masryo commited on
Commit
88151a6
·
1 Parent(s): a1b36be

chore: move companion tables to extras and update dataset card

Browse files
README.md CHANGED
@@ -5,13 +5,10 @@ language:
5
  - en
6
  size_categories:
7
  - 10K<n<100K
8
-
9
  task_categories:
10
  - tabular-regression
11
  - tabular-classification
12
  - text-classification
13
-
14
-
15
  tags:
16
  - social-media
17
  - youtube-shorts
@@ -25,54 +22,154 @@ tags:
25
  - dataset
26
  - eda
27
  - music
 
 
 
 
 
 
 
 
 
 
 
 
28
  ---
29
 
 
30
 
31
- # 🎬 YouTube Shorts & TikTok Trends 2025
32
- **Author:** Tarek Masryo · [Kaggle](https://www.kaggle.com/datasets/tarekmasryo/youtube-shorts-and-tiktok-trends-2025)
33
- **License:** CC0 (Public Domain) — Free for open research & education
 
 
34
 
35
  ---
36
 
37
- ## 📌 Dataset Summary
38
- A **comprehensive snapshot dataset** capturing short-form video activity on **YouTube Shorts & TikTok** in **2025 (Jan–Aug)**.
 
39
 
40
- - 🌍 Coverage: 100+ countries, 2 major platforms
41
- - 📂 Package: raw video-level file, ML-ready version, monthly summaries, country rollups, top creators, top hashtags, and a data dictionary
42
- - Features: standardized schemas, deduplicated IDs, engagement metrics (views, likes, comments, shares, saves, completion rate)
 
 
43
 
44
- 💡 For machine learning tasks, use the **ML-ready file** (`youtube_shorts_tiktok_trends_2025_ml.csv`).
45
- ⚠️ `trend_label` is a snapshot approximation (not full time-series). It’s a **challenging ML target** (≈25–35% baseline accuracy).
46
 
47
  ---
48
 
49
- ## 🗂 Dataset Structure
50
 
51
- ### Main Files
52
- - **`youtube_shorts_tiktok_trends_2025.csv`** → 48,079 rows × 58 columns (raw video-level data: platform, country, region, language, category, hashtags, author_handle, sound/music metadata, full engagement metrics).
53
- - **`youtube_shorts_tiktok_trends_2025_ml.csv`** → 50,000 rows × 32 columns (ML-ready version: cleaned & feature-engineered for faster modeling).
54
 
55
- ### Companion Files
56
- - `monthly_trends_2025.csv` 480 rows × 8 cols (video counts, views, avg engagement, velocity)
57
- - `country_platform_summary_2025.csv` → 60 rows × 14 cols (totals, medians, percentiles)
58
- - `top_creators_impact_2025.csv` → 1,000 rows × 20 cols (creator stats, cumulative engagement, avg rates)
59
- - `top_hashtags_2025.csv` → 82 rows × 18 cols (hashtag usage, reach, ratios, velocity)
60
- - `DATA_DICTIONARY.csv` → 58 rows (column names, descriptions, types)
61
 
62
- ---
 
 
 
 
63
 
64
- ## 🚀 How to Use
65
 
66
  ```python
67
  from datasets import load_dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  import pandas as pd
 
69
 
70
- # Load dataset from HuggingFace
71
- ds = load_dataset("TarekMasryo/YouTube-Shorts-TikTok-Trends-2025")
72
- df = ds["train"].to_pandas()
73
- print(df.head())
 
 
74
 
75
- # Example: work with companion file
76
- hashtags = pd.read_csv("top_hashtags_2025.csv")
77
  print(hashtags.sort_values("views", ascending=False).head(10))
78
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - en
6
  size_categories:
7
  - 10K<n<100K
 
8
  task_categories:
9
  - tabular-regression
10
  - tabular-classification
11
  - text-classification
 
 
12
  tags:
13
  - social-media
14
  - youtube-shorts
 
22
  - dataset
23
  - eda
24
  - music
25
+
26
+ # Manual configuration so the Hub viewer/builder loads only consistent schemas
27
+ # (and does not try to merge all CSVs with different columns).
28
+ configs:
29
+ - config_name: default
30
+ data_files:
31
+ - split: train
32
+ path: "data/youtube_shorts_tiktok_trends_2025.csv_ML.csv"
33
+ - config_name: raw
34
+ data_files:
35
+ - split: train
36
+ path: "data/youtube_shorts_tiktok_trends_2025.csv"
37
  ---
38
 
39
+ # 🎬 YouTube Shorts & TikTok Trends (2025)
40
 
41
+ **Author:** Tarek Masryo
42
+ **License:** CC BY 4.0
43
+
44
+ A structured snapshot of short‑form video activity across **YouTube Shorts** and **TikTok** during **2025 (Jan–Aug)**.
45
+ Built for **content intelligence**, **analytics dashboards**, and **ML baselines** (classification/regression).
46
 
47
  ---
48
 
49
+ ## What’s inside
50
+
51
+ This repository ships:
52
 
53
+ - **Two loadable dataset configs** (via `datasets.load_dataset`):
54
+ - `default` **MLready** table (cleaned + modeling‑friendly)
55
+ - `raw` **raw video‑level** table (wider schema + richer metadata)
56
+ - **Companion tables** under `extras/` (aggregations + dictionary):
57
+ - monthly rollups, country/platform summaries, creator and hashtag leaderboards, and a data dictionary
58
 
59
+ > Why configs? The companion tables have **different schemas**. Configs keep the Hub viewer stable and make `load_dataset()` work out of the box.
 
60
 
61
  ---
62
 
63
+ ## Dataset configs (recommended)
64
 
65
+ ### ML‑ready (default)
 
 
66
 
67
+ ```python
68
+ from datasets import load_dataset
 
 
 
 
69
 
70
+ ds = load_dataset("tarekmasryo/youtube-tiktok-trends-dataset-2025")
71
+ df = ds["train"].to_pandas()
72
+ print(df.shape)
73
+ print(df.head())
74
+ ```
75
 
76
+ ### Raw (video-level)
77
 
78
  ```python
79
  from datasets import load_dataset
80
+
81
+ raw = load_dataset("tarekmasryo/youtube-tiktok-trends-dataset-2025", "raw")
82
+ raw_df = raw["train"].to_pandas()
83
+ print(raw_df.shape)
84
+ print(raw_df.head())
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Repository structure
90
+
91
+ ### Main tables (Hub loadable)
92
+
93
+ - `data/youtube_shorts_tiktok_trends_2025.csv`
94
+ Raw video‑level data: platform, country, region, language, category, hashtags, creator handle, sound/music metadata, and engagement metrics.
95
+
96
+ - `data/youtube_shorts_tiktok_trends_2025.csv_ML.csv`
97
+ ML‑ready table: cleaned columns + feature‑engineered signals for faster modeling.
98
+
99
+ > If you rename the ML file (recommended for cleanliness), also update the YAML `configs` block at the top.
100
+
101
+ ### Companion tables (download as files)
102
+
103
+ These are not part of the dataset builder; they are supporting assets:
104
+
105
+ - `extras/monthly_trends_2025.csv` → monthly aggregates (counts, views, engagement/velocity proxies)
106
+ - `extras/country_platform_summary_2025.csv` → country/platform rollups (totals, medians, percentiles)
107
+ - `extras/top_creators_impact_2025.csv` → creator‑level stats (reach, cumulative engagement, rates)
108
+ - `extras/top_hashtags_2025.csv` → hashtag usage, reach, ratios, velocity signals
109
+ - `extras/DATA_DICTIONARY.csv` → column names, descriptions, and types
110
+
111
+ ---
112
+
113
+ ## Download companion tables (works anywhere)
114
+
115
+ ```python
116
  import pandas as pd
117
+ from huggingface_hub import hf_hub_download
118
 
119
+ repo_id = "tarekmasryo/youtube-tiktok-trends-dataset-2025"
120
+ path = hf_hub_download(
121
+ repo_id=repo_id,
122
+ repo_type="dataset",
123
+ filename="extras/top_hashtags_2025.csv",
124
+ )
125
 
126
+ hashtags = pd.read_csv(path)
 
127
  print(hashtags.sort_values("views", ascending=False).head(10))
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Typical use cases
133
+
134
+ ### Content intelligence & dashboards
135
+ - Platform comparison (Shorts vs TikTok)
136
+ - Country / region distribution and concentration
137
+ - Category performance and seasonality (Jan–Aug)
138
+ - “High‑opportunity” segments (coverage vs velocity)
139
+
140
+ ### ML baselines
141
+ - **Classification:** trend labels / buckets (if present)
142
+ - **Regression:** engagement proxies (views, likes, completion rate, etc.)
143
+ - **Text tasks:** titles/hashtags/sounds (if present) for weak supervision or clustering
144
+
145
+ ---
146
+
147
+ ## Notes on labels & evaluation
148
+
149
+ - If `trend_label` exists, treat it as a **snapshot approximation**, not ground‑truth time‑series labeling.
150
+ - Report your:
151
+ - split strategy (time‑aware vs random)
152
+ - leakage checks (creator leakage, sound leakage, near-duplicate videos)
153
+ - baseline metrics (not just best score)
154
+
155
+ ---
156
+
157
+ ## Limitations & responsible use
158
+
159
+ - This dataset covers **Jan–Aug 2025** and should not be treated as full historical coverage.
160
+ - Engagement signals are **platform‑dependent** and affected by sampling, availability, and regional conventions.
161
+ - If any identifiers exist (creator handles, video IDs), avoid doxxing or targeting individuals; use aggregated insights where possible.
162
+
163
+ ---
164
+
165
+ ## Citation
166
+
167
+ If you use this dataset in research or public work, cite it as:
168
+
169
+ **Tarek Masryo. (2025). _YouTube Shorts & TikTok Trends (2025)_. Hugging Face Datasets.**
170
+
171
+ ---
172
+
173
+ ## Changelog
174
+
175
+ See `CHANGELOG.md` for version notes.
{data → extras}/DATA_DICTIONARY.csv RENAMED
File without changes
{data → extras}/country_platform_summary_2025.csv RENAMED
File without changes
{data → extras}/monthly_trends_2025.csv RENAMED
File without changes
{data → extras}/top_creators_impact_2025.csv RENAMED
File without changes
{data → extras}/top_hashtags_2025.csv RENAMED
File without changes