ronantakizawa commited on
Commit
11e6358
·
verified ·
1 Parent(s): e2282be

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -18
README.md CHANGED
@@ -35,6 +35,26 @@ This dataset captures the evolution of GitHub's trending repositories over time,
35
  - ⭐ **89.8%** scraping success rate from Wayback Machine
36
  - 🏆 **Pre-processed monthly rankings** with weighted scoring
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ## 📁 Dataset Files
39
 
40
  ### 1. `github-trending-projects-full.csv` (19 MB)
@@ -154,38 +174,40 @@ This rewards both **consistency** (frequent appearances) and **position** (highe
154
 
155
  ## 💡 Usage Examples
156
 
157
- ### Load Full Dataset (Python)
158
 
159
  ```python
160
- import pandas as pd
161
 
162
- # Load complete dataset
163
- df = pd.read_csv('github-trending-projects-full.csv')
 
 
 
 
 
164
 
165
  # Filter to 2020+ (with star data)
166
- df_recent = df[df['date'] >= '2020-01-01']
167
 
168
- # Get top trending projects of 2024
169
- df_2024 = df[df['date'].str.startswith('2024')]
170
- top_2024 = df_2024.groupby(['repo_owner', 'name']).size().sort_values(ascending=False).head(10)
171
- print(top_2024)
172
  ```
173
 
174
- ### Load Monthly Top (Python)
175
 
176
  ```python
177
  import pandas as pd
178
 
179
- # Load pre-processed monthly rankings
 
180
  df_monthly = pd.read_csv('github-top-projects-by-month.csv')
181
 
182
- # Get November 2025 top 10
183
- nov_2025 = df_monthly[df_monthly['month'] == '2025-11'].head(10)
184
- print(nov_2025[['rank', 'repository', 'star_count', 'ranking_appearances']])
185
-
186
- # Find projects that consistently rank #1
187
- rank_1_projects = df_monthly[df_monthly['rank'] == 1]['repository'].value_counts()
188
- print(rank_1_projects.head(10))
189
  ```
190
 
191
  ### Time Series Analysis
 
35
  - ⭐ **89.8%** scraping success rate from Wayback Machine
36
  - 🏆 **Pre-processed monthly rankings** with weighted scoring
37
 
38
+ ## 🔧 Dataset Configurations
39
+
40
+ This dataset has **two configurations**:
41
+
42
+ ### Configuration: `full` (Default)
43
+ Complete daily trending data with 423,098 entries
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+ ds = load_dataset('ronantakizawa/github-top-projects', 'full')
48
+ ```
49
+
50
+ ### Configuration: `monthly`
51
+ Top 25 repositories per month with 3,200 entries
52
+
53
+ ```python
54
+ from datasets import load_dataset
55
+ ds = load_dataset('ronantakizawa/github-top-projects', 'monthly')
56
+ ```
57
+
58
  ## 📁 Dataset Files
59
 
60
  ### 1. `github-trending-projects-full.csv` (19 MB)
 
174
 
175
  ## 💡 Usage Examples
176
 
177
+ ### Load with Hugging Face Datasets (Recommended)
178
 
179
  ```python
180
+ from datasets import load_dataset
181
 
182
+ # Load complete daily dataset (423,098 entries)
183
+ ds_full = load_dataset('ronantakizawa/github-top-projects', 'full')
184
+ df_full = ds_full['train'].to_pandas()
185
+
186
+ # Load monthly top 25 dataset (3,200 entries)
187
+ ds_monthly = load_dataset('ronantakizawa/github-top-projects', 'monthly')
188
+ df_monthly = ds_monthly['train'].to_pandas()
189
 
190
  # Filter to 2020+ (with star data)
191
+ df_recent = df_full[df_full['date'] >= '2020-01-01']
192
 
193
+ # Get November 2025 top 10
194
+ nov_2025 = df_monthly[df_monthly['month'] == '2025-11'].head(10)
195
+ print(nov_2025[['rank', 'repository', 'star_count', 'ranking_appearances']])
 
196
  ```
197
 
198
+ ### Load Directly from CSV
199
 
200
  ```python
201
  import pandas as pd
202
 
203
+ # Download files from the dataset page, then:
204
+ df_full = pd.read_csv('github-trending-projects-full.csv')
205
  df_monthly = pd.read_csv('github-top-projects-by-month.csv')
206
 
207
+ # Get top trending projects of 2024
208
+ df_2024 = df_full[df_full['date'].str.startswith('2024')]
209
+ top_2024 = df_2024.groupby(['repo_owner', 'name']).size().sort_values(ascending=False).head(10)
210
+ print(top_2024)
 
 
 
211
  ```
212
 
213
  ### Time Series Analysis