Cyro1 commited on
Commit
9317be3
·
verified ·
1 Parent(s): 68c58f8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +98 -31
README.md CHANGED
@@ -1,31 +1,98 @@
1
- ---
2
- license: mit
3
- dataset_info:
4
- features:
5
- - name: wikipedia_id
6
- dtype: string
7
- - name: wikipedia_title
8
- dtype: string
9
- - name: popularity_avg
10
- dtype: float64
11
- - name: rank_avg
12
- dtype: float64
13
- - name: years_count
14
- dtype: int64
15
- splits:
16
- - name: train
17
- num_bytes: 316632756.6
18
- num_examples: 5313177
19
- - name: test
20
- num_bytes: 35181417.4
21
- num_examples: 590353
22
- download_size: 270015052
23
- dataset_size: 351814174.0
24
- configs:
25
- - config_name: default
26
- data_files:
27
- - split: train
28
- path: data/train-*
29
- - split: test
30
- path: data/test-*
31
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - other
5
+ - text-classification
6
+ language:
7
+ - en
8
+ size_categories:
9
+ - 1M<n<10M
10
+ tags:
11
+ - wikipedia
12
+ - pageviews
13
+ - popularity
14
+ - knowledge-graph
15
+ - bias-detection
16
+ - multi-year
17
+ ---
18
+
19
+ # English Wikipedia Pageviews (Multi-Year Average 2020-2023)
20
+
21
+ This dataset combines Wikipedia article pageviews across multiple years (2020, 2021, 2022, 2023) into a single multi-year average. It provides more stable popularity metrics by averaging across years, reducing the impact of temporary spikes or trends.
22
+
23
+ ## Dataset Description
24
+
25
+ This dataset was created by:
26
+ 1. Downloading individual yearly datasets (`Cyro1/enwiki_pageviews_YEAR_m`)
27
+ 2. Combining all years for each article
28
+ 3. Calculating the mean popularity and rank across all available years
29
+
30
+ ## Features
31
+
32
+ | Column | Type | Description |
33
+ |--------|------|-------------|
34
+ | `wikipedia_id` | int64 | Wikipedia article ID (page_id) |
35
+ | `wikipedia_title` | string | Wikipedia article title |
36
+ | `popularity_avg` | float64 | Average monthly pageviews across all years |
37
+ | `rank_avg` | float64 | Average rank across all years |
38
+ | `years_count` | int64 | Number of years this article appeared in (1-4) |
39
+
40
+ ## Stats
41
+
42
+ - **Articles**: 5,903,530 Wikipedia articles
43
+ - **Years Combined**: 2020, 2021, 2022, 2023
44
+ - **Source**: Wikimedia pageview dumps, aggregated from yearly datasets
45
+ - **Split**: 90% train / 10% test (seed=42)
46
+
47
+ ## Advantages of Multi-Year Averaging
48
+
49
+ - **Reduced variance**: Averages out seasonal variations and temporary events
50
+ - **More stable metrics**: Better represents long-term article importance
51
+ - **Robust to outliers**: Single-year spikes have less impact
52
+ - **Better for research**: More suitable for studying structural popularity bias
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ # Load the multi-year dataset
60
+ ds = load_dataset("Cyro1/enwiki_pageviews_m")
61
+ df = ds["train"].to_pandas()
62
+
63
+ # Merge with your dataset
64
+ merged = your_df.merge(
65
+ df[["wikipedia_id", "popularity_avg", "rank_avg", "years_count"]],
66
+ left_on="document_id",
67
+ right_on="wikipedia_id",
68
+ how="left"
69
+ )
70
+
71
+ # Filter to articles present in all years for most stable metrics
72
+ stable_articles = df[df["years_count"] == 4]
73
+ ```
74
+
75
+ ## Related Datasets
76
+
77
+ Individual yearly datasets are also available:
78
+ - [`Cyro1/enwiki_pageviews_2020_m`](https://huggingface.co/datasets/Cyro1/enwiki_pageviews_2020_m)
79
+ - [`Cyro1/enwiki_pageviews_2021_m`](https://huggingface.co/datasets/Cyro1/enwiki_pageviews_2021_m)
80
+ - [`Cyro1/enwiki_pageviews_2022_m`](https://huggingface.co/datasets/Cyro1/enwiki_pageviews_2022_m)
81
+ - [`Cyro1/enwiki_pageviews_2023_m`](https://huggingface.co/datasets/Cyro1/enwiki_pageviews_2023_m)
82
+
83
+ ## Citation
84
+
85
+ If you use this dataset in your research, please cite the Wikimedia pageview dumps:
86
+
87
+ ```
88
+ @misc{wikimedia_pageviews,
89
+ title = {Wikimedia Downloads},
90
+ author = {Wikimedia Foundation},
91
+ year = {2024},
92
+ url = {https://dumps.wikimedia.org/other/pageviews/}
93
+ }
94
+ ```
95
+
96
+ ## License
97
+
98
+ This dataset is released under the MIT license, following the terms of the Wikimedia pageview data.