Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,29 +1,51 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
---
|
| 17 |
+
|
| 18 |
+
# English Wikipedia Pageviews 2020 (Monthly Average)
|
| 19 |
+
|
| 20 |
+
This dataset links Wikipedia article IDs (from the 1st September 2019 Wikipedia dump) to their average monthly pageviews recorded during 2020.
|
| 21 |
+
|
| 22 |
+
## Features
|
| 23 |
+
|
| 24 |
+
| Column | Type | Description |
|
| 25 |
+
|--------|------|-------------|
|
| 26 |
+
| `wikipedia_id` | int64 | Wikipedia article ID (page_id) |
|
| 27 |
+
| `wikipedia_title` | string | Wikipedia article title |
|
| 28 |
+
| `popularity_avg` | float64 | Average monthly pageviews across 2020 |
|
| 29 |
+
| `rank_avg` | float64 | Average rank of the article |
|
| 30 |
+
|
| 31 |
+
## Stats
|
| 32 |
+
|
| 33 |
+
- **Articles**: 6.4M Wikipedia articles
|
| 34 |
+
- **Source**: Wikimedia pageview dumps for 2020
|
| 35 |
+
- **Split**: 90% train / 10% test (seed=42)
|
| 36 |
+
|
| 37 |
+
## Usage
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
from datasets import load_dataset
|
| 41 |
+
|
| 42 |
+
ds = load_dataset("Cyro1/enwiki_pageviews_2021_m")
|
| 43 |
+
df = ds["train"].to_pandas()
|
| 44 |
+
|
| 45 |
+
# Merge with your dataset
|
| 46 |
+
merged = your_df.merge(
|
| 47 |
+
df[["wikipedia_id", "monthly_avg_pageviews"]],
|
| 48 |
+
left_on="document_id",
|
| 49 |
+
right_on="wikipedia_id"
|
| 50 |
+
)
|
| 51 |
+
```
|