veloriatech commited on
Commit
5538659
·
verified ·
1 Parent(s): f419492

Update dataset card for parquet format

Browse files
Files changed (1) hide show
  1. README.md +36 -37
README.md CHANGED
@@ -7,57 +7,56 @@ language:
7
  tags:
8
  - cricket
9
  - cricsheet
10
- - ndjson
11
  - aicrix
12
  size_categories:
13
  - 1M<n<10M
14
  ---
15
 
16
- # AICrix — processed cricket data (relational NDJSON)
17
 
18
- Processed cricket tables exported as **newline-delimited JSON** (one JSON object per line), using the **AICrix relational schema** defined in this project (`db/migrations/001_cricket_schema.sql`).
19
 
20
  ## Files
21
 
22
  | File | Description |
23
  |------|-------------|
24
- | `continents.ndjson` | Continents |
25
- | `countries.ndjson` | Countries |
26
- | `leagues.ndjson` | Competitions |
27
- | `seasons.ndjson` | Seasons |
28
- | `stages.ndjson` | Tournament stages |
29
- | `venues.ndjson` | Venues |
30
- | `positions.ndjson` | Player positions |
31
- | `teams.ndjson` | Teams |
32
- | `players.ndjson` | Players |
33
- | `squad.ndjson` | Season squads |
34
- | `officials.ndjson` | Umpires / referees |
35
- | `fixtures.ndjson` | Matches |
36
- | `fixture_dl_data.ndjson` | D/L method rows |
37
- | `runs.ndjson` | Innings team scores |
38
- | `batting_scoreboards.ndjson` | Batting cards |
39
- | `bowling_scoreboards.ndjson` | Bowling cards |
40
- | `balls.ndjson` | Ball-by-ball (largest file) |
41
- | `lineups.ndjson` | Match lineups |
42
- | `standings.ndjson` | Table standings |
43
- | `team_rankings.ndjson` | ICC-style rankings |
44
 
45
  ## Usage
46
 
47
  ```python
48
- import json
49
- from pathlib import Path
50
-
51
- def read_ndjson(path: str):
52
- with open(path, encoding="utf-8") as f:
53
- for line in f:
54
- line = line.strip()
55
- if line:
56
- yield json.loads(line)
57
-
58
- for row in read_ndjson("fixtures.ndjson"):
59
- print(row["id"], row["type"])
60
- break
61
  ```
62
 
63
  Download from the Hub:
@@ -74,4 +73,4 @@ hf download veloria-tech/aicrix --repo-type dataset --local-dir ./aicrix
74
 
75
  ## Source
76
 
77
- Derived from Cricsheet JSON in the parent [cricket-prediction-model](https://github.com/) pipeline (`data/raw` → `data/processed`).
 
7
  tags:
8
  - cricket
9
  - cricsheet
10
+ - parquet
11
  - aicrix
12
  size_categories:
13
  - 1M<n<10M
14
  ---
15
 
16
+ # AICrix — processed cricket data (Parquet)
17
 
18
+ Processed cricket tables in **Apache Parquet** (ZSTD compression), using the **AICrix relational schema** (`db/migrations/001_cricket_schema.sql`).
19
 
20
  ## Files
21
 
22
  | File | Description |
23
  |------|-------------|
24
+ | `continents.parquet` | Continents |
25
+ | `countries.parquet` | Countries |
26
+ | `leagues.parquet` | Competitions |
27
+ | `seasons.parquet` | Seasons |
28
+ | `stages.parquet` | Tournament stages |
29
+ | `venues.parquet` | Venues |
30
+ | `positions.parquet` | Player positions |
31
+ | `teams.parquet` | Teams |
32
+ | `players.parquet` | Players |
33
+ | `squad.parquet` | Season squads |
34
+ | `officials.parquet` | Umpires / referees |
35
+ | `fixtures.parquet` | Matches |
36
+ | `fixture_dl_data.parquet` | D/L method rows |
37
+ | `runs.parquet` | Innings team scores |
38
+ | `batting_scoreboards.parquet` | Batting cards |
39
+ | `bowling_scoreboards.parquet` | Bowling cards |
40
+ | `balls.parquet` | Ball-by-ball (largest table) |
41
+ | `lineups.parquet` | Match lineups |
42
+ | `standings.parquet` | Table standings |
43
+ | `team_rankings.parquet` | ICC-style rankings |
44
 
45
  ## Usage
46
 
47
  ```python
48
+ import pandas as pd
49
+
50
+ fixtures = pd.read_parquet("fixtures.parquet")
51
+ print(fixtures[["id", "type", "starting_at"]].head())
52
+ ```
53
+
54
+ With DuckDB (SQL over parquet):
55
+
56
+ ```python
57
+ import duckdb
58
+
59
+ duckdb.sql("SELECT id, type FROM 'fixtures.parquet' LIMIT 5").show()
 
60
  ```
61
 
62
  Download from the Hub:
 
73
 
74
  ## Source
75
 
76
+ Derived from Cricsheet JSON (`data/raw` → NDJSON pipeline → Parquet export).