row_id stringlengths 10 10 | file_name stringlengths 57 87 | analysis_file_name stringlengths 67 97 | meta_file_name stringlengths 45 45 | match_id stringlengths 7 7 | hltv_demo_id stringlengths 6 6 | match_url stringlengths 61 122 | event stringclasses 70
values | team1 stringclasses 271
values | team2 stringclasses 284
values | score1 int32 0 2 | score2 int32 0 2 | winner stringclasses 2
values | format stringclasses 1
value | stars int32 0 5 | match_date timestamp[ms, tz=UTC]date 2026-03-23 18:04:09 2026-04-20 21:02:59 | map_index int32 1 5 | map_name stringclasses 7
values | patch_version stringclasses 1
value | rounds_played int32 3 54 | winner_side stringclasses 2
values | header dict | match dict | teams listlengths 2 2 | players listlengths 22 51 | rounds listlengths 3 54 | kills listlengths 32 377 | rounds_count int32 3 54 | kills_count int32 32 377 | players_count int32 22 51 | meta dict | demo_bytes int64 79.5M 1.33B | analysis_bytes int64 20.1k 173k | parse_seconds float32 11.2 84.5 | uploaded_at timestamp[ms, tz=UTC]date 2026-04-27 19:30:07 2026-04-28 14:58:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2393397-m1 | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m1-dust2.dem | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m1-dust2.analysis.json | demos/shard-europe-020c2c03/2393397/meta.json | 2393397 | 107208 | https://www.hltv.org/matches/2393397/xi-vs-rebels-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | XI | Rebels | 1 | 2 | team2 | bo3 | 0 | 2026-04-19T10:54:25 | 1 | de_dust2 | 14141 | 17 | t | {
"map_name": "de_dust2",
"patch_version": "14141",
"server_name": "Esplay.com",
"network_protocol": null,
"demo_version_name": "valve_demo_2"
} | {
"map_name": "de_dust2",
"patch_version": "14141",
"tick_rate": 128,
"first_tick": 0,
"last_tick": 146621,
"total_ticks": 146621,
"rounds_played": 17,
"score_ct": 3,
"score_t": 14,
"winner_side": "t"
} | [
{
"side_start": "ct",
"players": [
{
"name": "bakorino",
"steamid": 76561198263735550
},
{
"name": "ETYYY",
"steamid": 76561198884684420
},
{
"name": "Egelund",
"steamid": 76561198196115500
},
{
"name": "emilio... | [
{
"name": "Egelund",
"steamid": 76561198196115500,
"side": "ct",
"n_rounds": 12,
"kills": 4,
"headshots": 0,
"deaths": 9,
"assists": 0,
"hs_rate": 0,
"adr": 36.83333206176758,
"dmg": 442,
"kast": 41.66666793823242,
"kast_rounds": 5,
"rating": 0.371918320655822... | [
{
"round_num": 1,
"start": 0,
"freeze_end": 1279,
"end": 6947,
"official_end": 7395,
"winner": "t",
"reason": "ct_killed",
"bomb_plant": 4779,
"bomb_site": "bombsite_b",
"duration_ticks": 6947
},
{
"round_num": 2,
"start": 7395,
"freeze_end": 8675,
"end": ... | [
{
"tick": 3314,
"round_num": 1,
"attacker_name": "Jiace",
"attacker_steamid": 76561197993715780,
"attacker_side": "ct",
"victim_name": "NOPEEj",
"victim_steamid": 76561198160794700,
"victim_side": "t",
"assister_name": null,
"assister_steamid": null,
"weapon": "elite",
... | 17 | 98 | 30 | {
"match_id": "2393397",
"demo_id": "107208",
"demo_url": "https://www.hltv.org/download/demo/107208",
"match_url": "https://www.hltv.org/matches/2393397/xi-vs-rebels-parken-challenger-championship-season-5",
"archive_name": "parken-challenger-championship-season-5-xi-vs-rebels-bo3-4rIw3hOGmnMzHntkWu8Dhg.rar"... | 433,910,026 | 51,946 | 34.34 | 2026-04-27T19:42:25 |
2393397-m2 | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m2-nuke.dem | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m2-nuke.analysis.json | demos/shard-europe-020c2c03/2393397/meta.json | 2393397 | 107208 | https://www.hltv.org/matches/2393397/xi-vs-rebels-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | XI | Rebels | 1 | 2 | team2 | bo3 | 0 | 2026-04-19T10:54:25 | 2 | de_nuke | 14141 | 23 | ct | {
"map_name": "de_nuke",
"patch_version": "14141",
"server_name": "Esplay.com",
"network_protocol": null,
"demo_version_name": "valve_demo_2"
} | {
"map_name": "de_nuke",
"patch_version": "14141",
"tick_rate": 128,
"first_tick": 0,
"last_tick": 190628,
"total_ticks": 190628,
"rounds_played": 23,
"score_ct": 15,
"score_t": 8,
"winner_side": "ct"
} | [
{
"side_start": "ct",
"players": [
{
"name": "snapy",
"steamid": 76561198228964540
},
{
"name": "TMKj",
"steamid": 76561198798935520
},
{
"name": "Icarus10",
"steamid": 76561198251575490
},
{
"name": "NOPEEj",
... | [
{
"name": "emiliokislo",
"steamid": 76561198063957520,
"side": "t",
"n_rounds": 12,
"kills": 7,
"headshots": 2,
"deaths": 10,
"assists": 2,
"hs_rate": 0.2857142984867096,
"adr": 72.5,
"dmg": 870,
"kast": 58.33333206176758,
"kast_rounds": 7,
"rating": 0.7959979... | [
{
"round_num": 1,
"start": 0,
"freeze_end": 1279,
"end": 6893,
"official_end": 7341,
"winner": "t",
"reason": "ct_killed",
"bomb_plant": 6410,
"bomb_site": "bombsite_b",
"duration_ticks": 6893
},
{
"round_num": 2,
"start": 7341,
"freeze_end": 8621,
"end": ... | [
{
"tick": 2912,
"round_num": 1,
"attacker_name": "snapy",
"attacker_steamid": 76561198228964540,
"attacker_side": "ct",
"victim_name": "bakorino",
"victim_steamid": 76561198263735550,
"victim_side": "t",
"assister_name": null,
"assister_steamid": null,
"weapon": "usp_sile... | 23 | 167 | 30 | {
"match_id": "2393397",
"demo_id": "107208",
"demo_url": "https://www.hltv.org/download/demo/107208",
"match_url": "https://www.hltv.org/matches/2393397/xi-vs-rebels-parken-challenger-championship-season-5",
"archive_name": "parken-challenger-championship-season-5-xi-vs-rebels-bo3-4rIw3hOGmnMzHntkWu8Dhg.rar"... | 542,529,295 | 82,019 | 43.349998 | 2026-04-27T19:42:25 |
2393397-m3 | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m3-overpass.dem | demos/shard-europe-020c2c03/2393397/xi-vs-rebels-m3-overpass.analysis.json | demos/shard-europe-020c2c03/2393397/meta.json | 2393397 | 107208 | https://www.hltv.org/matches/2393397/xi-vs-rebels-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | XI | Rebels | 1 | 2 | team2 | bo3 | 0 | 2026-04-19T10:54:25 | 3 | de_overpass | 14141 | 21 | ct | {"map_name":"de_overpass","patch_version":"14141","server_name":"Esplay.com","network_protocol":null(...TRUNCATED) | {"map_name":"de_overpass","patch_version":"14141","tick_rate":128,"first_tick":0,"last_tick":193549,(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"stadodo","steamid":76561198047402862},{"name":"TMKj","steami(...TRUNCATED) | [{"name":"TMKj","steamid":76561198798935520,"side":"ct","n_rounds":12,"kills":9,"headshots":5,"death(...TRUNCATED) | [{"round_num":1,"start":0,"freeze_end":1279,"end":3554,"official_end":4002,"winner":"ct","reason":"t(...TRUNCATED) | [{"tick":2243,"round_num":1,"attacker_name":"snapy","attacker_steamid":76561198228964552,"attacker_s(...TRUNCATED) | 21 | 149 | 30 | {"match_id":"2393397","demo_id":"107208","demo_url":"https://www.hltv.org/download/demo/107208","mat(...TRUNCATED) | 569,591,616 | 74,183 | 40.07 | 2026-04-27T19:42:25 |
2393178-m1 | demos/shard-europe-020c2c03/2393178/mouz-nxt-vs-ursa-m1-dust2.dem | demos/shard-europe-020c2c03/2393178/mouz-nxt-vs-ursa-m1-dust2.analysis.json | demos/shard-europe-020c2c03/2393178/meta.json | 2393178 | 107205 | https://www.hltv.org/matches/2393178/mouz-nxt-vs-ursa-nodwin-clutch-series-7 | NODWIN Clutch Series 7 | MOUZ NXT | Ursa | 2 | 0 | team1 | bo3 | 0 | 2026-04-19T10:01:36 | 1 | de_dust2 | 14141 | 30 | ct | {"map_name":"de_dust2","patch_version":"14141","server_name":"NODWIN Clutch","network_protocol":null(...TRUNCATED) | {"map_name":"de_dust2","patch_version":"14141","tick_rate":128,"first_tick":94,"last_tick":229230,"t(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"Nikodeon","steamid":76561198407480534},{"name":"ay0k","steam(...TRUNCATED) | [{"name":"ay0k","steamid":76561198254835598,"side":"t","n_rounds":15,"kills":8,"headshots":5,"deaths(...TRUNCATED) | [{"round_num":1,"start":94,"freeze_end":1374,"end":6991,"official_end":7311,"winner":"t","reason":"b(...TRUNCATED) | [{"tick":1940,"round_num":1,"attacker_name":"karnez","attacker_steamid":76561198843946848,"attacker_(...TRUNCATED) | 30 | 212 | 30 | {"match_id":"2393178","demo_id":"107205","demo_url":"https://www.hltv.org/download/demo/107205","mat(...TRUNCATED) | 659,106,679 | 100,766 | 50.380001 | 2026-04-27T19:42:25 |
2393178-m2 | demos/shard-europe-020c2c03/2393178/mouz-nxt-vs-ursa-m2-mirage.dem | demos/shard-europe-020c2c03/2393178/mouz-nxt-vs-ursa-m2-mirage.analysis.json | demos/shard-europe-020c2c03/2393178/meta.json | 2393178 | 107205 | https://www.hltv.org/matches/2393178/mouz-nxt-vs-ursa-nodwin-clutch-series-7 | NODWIN Clutch Series 7 | MOUZ NXT | Ursa | 2 | 0 | team1 | bo3 | 0 | 2026-04-19T10:01:36 | 2 | de_mirage | 14141 | 17 | ct | {"map_name":"de_mirage","patch_version":"14141","server_name":"NODWIN Clutch","network_protocol":nul(...TRUNCATED) | {"map_name":"de_mirage","patch_version":"14141","tick_rate":128,"first_tick":71,"last_tick":132669,"(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"k0s","steamid":76561198193739570},{"name":"Alv","steamid":76(...TRUNCATED) | [{"name":"karnez","steamid":76561198843946848,"side":"t","n_rounds":5,"kills":2,"headshots":2,"death(...TRUNCATED) | [{"round_num":1,"start":71,"freeze_end":1351,"end":6232,"official_end":6552,"winner":"t","reason":"c(...TRUNCATED) | [{"tick":2898,"round_num":1,"attacker_name":"xelex","attacker_steamid":76561198998266210,"attacker_s(...TRUNCATED) | 17 | 113 | 30 | {"match_id":"2393178","demo_id":"107205","demo_url":"https://www.hltv.org/download/demo/107205","mat(...TRUNCATED) | 365,554,760 | 57,641 | 33.650002 | 2026-04-27T19:42:25 |
2393396-m1 | demos/shard-europe-020c2c03/2393396/tnc-vs-phantom-academy-m1-mirage.dem | demos/shard-europe-020c2c03/2393396/tnc-vs-phantom-academy-m1-mirage.analysis.json | demos/shard-europe-020c2c03/2393396/meta.json | 2393396 | 107204 | https://www.hltv.org/matches/2393396/tnc-vs-phantom-academy-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | TNC | Phantom Academy | 2 | 0 | team1 | bo3 | 0 | 2026-04-19T09:52:45 | 1 | de_mirage | 14141 | 22 | t | {"map_name":"de_mirage","patch_version":"14141","server_name":"Esplay.com","network_protocol":null,"(...TRUNCATED) | {"map_name":"de_mirage","patch_version":"14141","tick_rate":128,"first_tick":0,"last_tick":119982,"t(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"chedzik","steamid":76561197992897479},{"name":"Ader","steami(...TRUNCATED) | [{"name":"Nami","steamid":76561198191011338,"side":"ct","n_rounds":10,"kills":5,"headshots":2,"death(...TRUNCATED) | [{"round_num":1,"start":0,"freeze_end":4505,"end":6830,"official_end":7278,"winner":"t","reason":"ct(...TRUNCATED) | [{"tick":5457,"round_num":1,"attacker_name":"chedzik","attacker_steamid":76561197992897479,"attacker(...TRUNCATED) | 22 | 154 | 30 | {"match_id":"2393396","demo_id":"107204","demo_url":"https://www.hltv.org/download/demo/107204","mat(...TRUNCATED) | 347,802,247 | 75,806 | 33.490002 | 2026-04-27T19:42:25 |
2393396-m2 | demos/shard-europe-020c2c03/2393396/tnc-vs-phantom-academy-m2-ancient.dem | demos/shard-europe-020c2c03/2393396/tnc-vs-phantom-academy-m2-ancient.analysis.json | demos/shard-europe-020c2c03/2393396/meta.json | 2393396 | 107204 | https://www.hltv.org/matches/2393396/tnc-vs-phantom-academy-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | TNC | Phantom Academy | 2 | 0 | team1 | bo3 | 0 | 2026-04-19T09:52:45 | 2 | de_ancient | 14141 | 28 | ct | {"map_name":"de_ancient","patch_version":"14141","server_name":"Esplay.com","network_protocol":null,(...TRUNCATED) | {"map_name":"de_ancient","patch_version":"14141","tick_rate":128,"first_tick":0,"last_tick":204180,"(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"Ader","steamid":76561199551297843},{"name":"Ayteel","steamid(...TRUNCATED) | [{"name":"chedzik","steamid":76561197992897479,"side":"t","n_rounds":15,"kills":9,"headshots":7,"dea(...TRUNCATED) | [{"round_num":1,"start":0,"freeze_end":1279,"end":3933,"official_end":4381,"winner":"ct","reason":"t(...TRUNCATED) | [{"tick":2887,"round_num":1,"attacker_name":"Brain","attacker_steamid":76561198124692673,"attacker_s(...TRUNCATED) | 28 | 201 | 30 | {"match_id":"2393396","demo_id":"107204","demo_url":"https://www.hltv.org/download/demo/107204","mat(...TRUNCATED) | 581,810,229 | 96,548 | 46.57 | 2026-04-27T19:42:25 |
2393363-m1 | demos/shard-europe-020c2c03/2393363/dnk-vs-winners-m1-mirage.dem | demos/shard-europe-020c2c03/2393363/dnk-vs-winners-m1-mirage.analysis.json | demos/shard-europe-020c2c03/2393363/meta.json | 2393363 | 107207 | https://www.hltv.org/matches/2393363/dnk-vs-winners-1xbet-spring-battle-cup-2026 | 1xBet Spring Battle Cup 2026 | DNK | Winners | 0 | 2 | team2 | bo3 | 0 | 2026-04-19T10:17:12 | 1 | de_mirage | 14141 | 20 | t | {"map_name":"de_mirage","patch_version":"14141","server_name":"FRAG | DNK vs WINNERS","network_proto(...TRUNCATED) | {"map_name":"de_mirage","patch_version":"14141","tick_rate":128,"first_tick":67,"last_tick":131843,"(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"-dethera","steamid":76561198163048104},{"name":"tier0_s","st(...TRUNCATED) | [{"name":"Plain7","steamid":76561199011430797,"side":"ct","n_rounds":12,"kills":8,"headshots":4,"dea(...TRUNCATED) | [{"round_num":1,"start":67,"freeze_end":1347,"end":5928,"official_end":6248,"winner":"t","reason":"c(...TRUNCATED) | [{"tick":3634,"round_num":1,"attacker_name":"-dethera","attacker_steamid":76561198163048104,"attacke(...TRUNCATED) | 20 | 142 | 30 | {"match_id":"2393363","demo_id":"107207","demo_url":"https://www.hltv.org/download/demo/107207","mat(...TRUNCATED) | 348,028,338 | 70,701 | 32.740002 | 2026-04-27T19:42:25 |
2393363-m2 | demos/shard-europe-020c2c03/2393363/dnk-vs-winners-m2-overpass.dem | demos/shard-europe-020c2c03/2393363/dnk-vs-winners-m2-overpass.analysis.json | demos/shard-europe-020c2c03/2393363/meta.json | 2393363 | 107207 | https://www.hltv.org/matches/2393363/dnk-vs-winners-1xbet-spring-battle-cup-2026 | 1xBet Spring Battle Cup 2026 | DNK | Winners | 0 | 2 | team2 | bo3 | 0 | 2026-04-19T10:17:12 | 2 | de_overpass | 14141 | 16 | ct | {"map_name":"de_overpass","patch_version":"14141","server_name":"FRAG | WINNERS vs DNK","network_pro(...TRUNCATED) | {"map_name":"de_overpass","patch_version":"14141","tick_rate":128,"first_tick":100,"last_tick":10362(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"raiNyyy","steamid":76561198334550344},{"name":"weaveR","stea(...TRUNCATED) | [{"name":"Arima","steamid":76561199101320044,"side":"ct","n_rounds":12,"kills":8,"headshots":4,"deat(...TRUNCATED) | [{"round_num":1,"start":100,"freeze_end":1380,"end":4252,"official_end":4572,"winner":"t","reason":"(...TRUNCATED) | [{"tick":2068,"round_num":1,"attacker_name":"tier0_s","attacker_steamid":76561198081374219,"attacker(...TRUNCATED) | 16 | 113 | 30 | {"match_id":"2393363","demo_id":"107207","demo_url":"https://www.hltv.org/download/demo/107207","mat(...TRUNCATED) | 277,062,192 | 57,748 | 31.33 | 2026-04-27T19:42:25 |
2393398-m1 | demos/shard-europe-020c2c03/2393398/sashi-academy-vs-infinite-m1-inferno.dem | demos/shard-europe-020c2c03/2393398/sashi-academy-vs-infinite-m1-inferno.analysis.json | demos/shard-europe-020c2c03/2393398/meta.json | 2393398 | 107203 | https://www.hltv.org/matches/2393398/sashi-academy-vs-infinite-parken-challenger-championship-season-5 | Parken Challenger Championship Season 5 | Sashi Academy | INFINITE | 0 | 2 | team2 | bo3 | 0 | 2026-04-19T09:43:33 | 1 | de_inferno | 14141 | 24 | t | {"map_name":"de_inferno","patch_version":"14141","server_name":"Esplay.com","network_protocol":null,(...TRUNCATED) | {"map_name":"de_inferno","patch_version":"14141","tick_rate":128,"first_tick":0,"last_tick":196282,"(...TRUNCATED) | [{"side_start":"ct","players":[{"name":"sl3nd","steamid":76561198098071693},{"name":"kreaz","steamid(...TRUNCATED) | [{"name":"mhN","steamid":76561198155962995,"side":"ct","n_rounds":12,"kills":8,"headshots":6,"deaths(...TRUNCATED) | [{"round_num":1,"start":0,"freeze_end":1279,"end":4910,"official_end":5358,"winner":"t","reason":"ct(...TRUNCATED) | [{"tick":2335,"round_num":1,"attacker_name":"mhN","attacker_steamid":76561198155962995,"attacker_sid(...TRUNCATED) | 24 | 154 | 30 | {"match_id":"2393398","demo_id":"107203","demo_url":"https://www.hltv.org/download/demo/107203","mat(...TRUNCATED) | 594,360,751 | 75,896 | 45.310001 | 2026-04-27T19:42:25 |
HLTV CS2 Demos Dataset
Counter-Strike 2 match demos scraped from HLTV.org
plus a compact per-map analysis JSON. Each row of the metadata Parquet is
one .dem file (one played CS2 map); a best-of-3 match contributes 2
or 3 rows depending on whether it went 2-0 or 2-1.
- Parquet holds everything you typically filter on:
map_name,patch_version,rounds_played, per-playerkast/adr/rating, every kill tick with weapon + headshot, every round's winner + end reason. .dembinaries live alongside as loose files; each match subfolder also carries ameta.json(HLTV sidecar) and a<demo>.analysis.json(the exact JSON that was embedded into the Parquet row, so the shard is self-describing if you grab it via the filesystem).
Repository layout
data/ # metadata Parquet (self-describing)
metadata-<machine>-<uuid>.parquet
demos/
shard-<machine>-<uuid>/
<match_id>/
meta.json # HLTV sidecar (teams, event, demo id …)
<demo1>.dem # bo3 map 1
<demo1>.analysis.json # per-map analysis (full)
<demo2>.dem
<demo2>.analysis.json
<demo3>.dem # absent if bo3 ended 2-0
<demo3>.analysis.json
Shard names carry the producing machine id + a UUID so any number of machines can upload to the dataset in parallel without colliding.
Schema (one row per .dem)
Promoted top-level columns let you filter fast:
| column | type | source |
|---|---|---|
file_name |
string | .dem path inside the repo |
analysis_file_name |
string | <demo>.analysis.json path |
meta_file_name |
string | per-match meta.json path |
match_id |
string | HLTV numeric id (same across the bo3 maps) |
event, team1, team2 |
string | HLTV /results row |
score1, score2 |
int32 | map score of the full bo3 |
format |
string | bo3 / bo5 / map name for bo1s |
match_date |
timestamp | UTC, from HLTV |
map_index |
int32 | 1, 2, 3 position of this map in the bo3 |
map_name |
string | e.g. de_overpass |
patch_version |
string | CS2 build, e.g. "14141" = 1.41.4.1 |
rounds_played |
int32 | actual rounds this map went |
winner_side |
string | ct / t |
Native nested columns for the full analysis:
| column | type |
|---|---|
header |
struct<map_name, patch_version, server_name, network_protocol, demo_version_name> |
match |
struct<map_name, patch_version, tick_rate, first_tick, last_tick, total_ticks, rounds_played, score_ct, score_t, winner_side> |
teams |
list<struct<side_start, players: list<struct<name, steamid>>>> |
players |
list<struct<name, steamid, side, n_rounds, kills, headshots, deaths, assists, hs_rate, adr, dmg, kast, kast_rounds, rating, impact>> |
rounds |
list<struct<round_num, start, freeze_end, end, official_end, winner, reason, bomb_plant, bomb_site, duration_ticks>> |
kills |
list<struct<tick, round_num, attacker_name, attacker_steamid, attacker_side, victim_name, victim_steamid, victim_side, assister_name, assister_steamid, weapon, headshot, distance, noscope, thrusmoke, penetrated, attackerblind, dmg_health, hitgroup>> |
meta |
struct mirror of the on-disk meta.json |
Query with DuckDB (no download)
The Hub supports hf:// paths in DuckDB ≥ 0.10.3, so you can run SQL
directly against the parquet without fetching the .dems. See the HF
DuckDB docs.
-- Quick peek
FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet' LIMIT 3;
-- All de_overpass maps on patch 14141
SELECT match_id, team1, team2, map_name, score_ct, score_t, rounds_played
FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet'
WHERE patch_version = '14141' AND map_name = 'de_overpass';
-- Dot-access into the nested `match` struct
SELECT match_id, match.tick_rate, match.winner_side
FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet';
-- UNNEST kills to one row per kill
SELECT match_id, k.weapon, k.headshot, k.distance
FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet', UNNEST(kills) AS t(k)
WHERE k.headshot;
-- Inline list predicates (avoid UNNEST when you want aggregates)
SELECT match_id, map_name,
len(kills) AS n_kills,
len(filter(kills, x -> x.headshot)) AS n_hs,
list_avg(list_transform(players, p -> p.adr)) AS avg_adr
FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet';
Also works from DuckDB's Python client:
import duckdb
duckdb.sql("SELECT count(*) FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet'")
Or via the Hub's auto-converted parquet branch (useful when the dataset gets huge and the Viewer shards it for you):
SELECT count(*) FROM 'hf://datasets/blanchon/cs2_dataset_demo@~parquet/**/*.parquet';
Stream with datasets
from datasets import load_dataset
ds = load_dataset("blanchon/cs2_dataset_demo", split="train", streaming=True)
# Take the first 10 rows — metadata only, no .dem transferred
for row in ds.take(10):
print(row["match_id"], row["map_name"], row["patch_version"],
row["match"]["score_ct"], row["match"]["score_t"])
# Filter in the stream: patch 14141 + tier-1 events
ds = ds.filter(
lambda r: r["patch_version"] == "14141" and "IEM" in (r["event"] or "")
)
Stream single files with HfFileSystem
For random access (read one Parquet row group, one .analysis.json
without downloading neighbours, etc.) use
HfFileSystem:
from huggingface_hub import hffs
import json, pyarrow.parquet as pq
# Read one .analysis.json
with hffs.open("datasets/blanchon/cs2_dataset_demo/demos/shard-<id>/<match_id>/<demo>.analysis.json") as f:
analysis = json.load(f)
print(analysis["match"]["rounds_played"], len(analysis["kills"]))
# List every .analysis.json in a shard
for p in hffs.glob("datasets/blanchon/cs2_dataset_demo/demos/shard-*/*/*.analysis.json"):
print(p)
# Row-group-level streaming on the metadata Parquet
with pq.ParquetFile("hf://datasets/blanchon/cs2_dataset_demo/data/metadata-xyz.parquet") as pf:
for i in range(pf.num_row_groups):
tbl = pf.read_row_group(i)
# process tbl …
Partial download with the hf CLI
The hf CLI ships
with huggingface_hub. hf_transfer is the Rust-backed uploader/downloader
that saturates a gigabit link per file.
pip install -U huggingface_hub hf_transfer
export HF_HUB_ENABLE_HF_TRANSFER=1
# Metadata only (fast, ~tens of MB for the whole dataset)
hf download blanchon/cs2_dataset_demo --repo-type dataset --include "data/*.parquet"
# One match: all files under a given <match_id>/
hf download blanchon/cs2_dataset_demo --repo-type dataset --include "demos/shard-*/2393304/*"
# One shard (one machine's batch) worth of data
hf download blanchon/cs2_dataset_demo --repo-type dataset --include "demos/shard-machineA-*/**"
# Only the .analysis.json sidecars (tens of KB each, no .dem)
hf download blanchon/cs2_dataset_demo --repo-type dataset --include "demos/shard-*/**/*.analysis.json"
The equivalent in Python:
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="blanchon/cs2_dataset_demo", repo_type="dataset",
allow_patterns=["data/*", "demos/shard-*/2393304/*"],
)
Example workflow: metadata-first, fetch on demand
from huggingface_hub import HfFileSystem, hf_hub_download
import duckdb
# 1. Decide which matches you care about via SQL — stays on the Hub
paths = duckdb.sql(f'''
SELECT file_name FROM 'hf://datasets/blanchon/cs2_dataset_demo/data/*.parquet'
WHERE patch_version = '14141'
AND map_name = 'de_overpass'
AND score_ct + score_t >= 24
''').fetchall()
# 2. Fetch only the matching .dem files
for (rel,) in paths:
local = hf_hub_download(repo_id="blanchon/cs2_dataset_demo", repo_type="dataset", filename=rel)
print(local)
Collection & licensing
Demos are mirrored from HLTV's public /download/demo/<id> endpoint, which
hosts VODs provided by tournament organizers. Downstream users are
responsible for respecting the original terms from those tournaments. This
dataset exists for research / analytics / ML use on competitive CS2 play.
- Downloads last month
- 2,509