good stuff
This commit is contained in:
parent
7050aeca97
commit
add7a566d5
116
AoE-Mining.md
Normal file
116
AoE-Mining.md
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
# AoE2 Mining
|
||||||
|
|
||||||
|
NAC 4 civ stats
|
||||||
|
https://docs.google.com/spreadsheets/d/16dc1TQ2qOIfN9bmqhxKeYP_CErMccD6m2xhC-j0Mhh8/edit#gid=785059360
|
||||||
|
|
||||||
|
Model the group stage of NAC4
|
||||||
|
https://gist.github.com/aseyboldt/3fe105acbb15f74cfd659b4f44641ebd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Datensatz mit Drafts und Ergebnissen pro Map
|
||||||
|
Is there such a thing as a "home map"?
|
||||||
|
account for skill difference: against better players, it does not matter as much who choose the map
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Datensatz selber Erstellen für Plünderparty
|
||||||
|
|
||||||
|
Toornament API kostenpflichtig
|
||||||
|
https://www.toornament.com/de/pricing
|
||||||
|
|
||||||
|
|
||||||
|
Get Liquipedia Tournament data
|
||||||
|
https://liquipedia.net/ageofempires/Nili%27s_Apartment_Cup/4
|
||||||
|
|
||||||
|
Liquipedia APIs are parsing HTML, which is specific for each Game
|
||||||
|
Python wrapper for liquipedia API
|
||||||
|
https://github.com/c00kie17/liquipediapy
|
||||||
|
only dota, cs, smash
|
||||||
|
|
||||||
|
https://github.com/Ampa1R/liquipedia-api
|
||||||
|
|
||||||
|
|
||||||
|
https://liquipedia.net/ageofempires/api.php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
contains link to Captains mode
|
||||||
|
|
||||||
|
use captains mode api to get draft
|
||||||
|
|
||||||
|
Take home maps from AoE2 CM?
|
||||||
|
|
||||||
|
https://aoe2cm.net/api
|
||||||
|
|
||||||
|
Draft Hera Lierrey final
|
||||||
|
https://aoe2cm.net/draft/FMHZx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Airflow:
|
||||||
|
Steps:
|
||||||
|
- input aoecm link
|
||||||
|
- download json data
|
||||||
|
- run python script to process data
|
||||||
|
|
||||||
|
|
||||||
|
## Jupyter notebook in docker:
|
||||||
|
There are different images to choose from: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
|
||||||
|
|
||||||
|
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-03-27
|
||||||
|
|
||||||
|
Works only on WSL because of mounted host volume
|
||||||
|
run detached:
|
||||||
|
docker run --name jupyter -d \
|
||||||
|
-p 8888:8888 \
|
||||||
|
--user root \
|
||||||
|
-e NB_USER="marcelo" \
|
||||||
|
-e CHOWN_HOME=yes \
|
||||||
|
-w "/home/marcelo" \
|
||||||
|
-v ./jupyter-data:/home/marcelo \
|
||||||
|
jupyter/scipy-notebook:2023-03-27
|
||||||
|
|
||||||
|
|
||||||
|
configuration:
|
||||||
|
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html
|
||||||
|
|
||||||
|
How to install new packages:
|
||||||
|
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#conda-environments
|
||||||
|
|
||||||
|
|
||||||
|
run inside container:
|
||||||
|
pip install liquipediapy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
docker cp jupyter:/home/marcelo/AoE-data.ipynb .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Actually, the API-usage on the official site is straight forward.
|
||||||
|
A request to POST https://api.ageofempires.com/api/v2/AgeII/GetMPFull with content of {profileId: "199325", matchType: "3"} and a Header Content-Type: application/json for example will return JSON-encoded stats for Hera and RM. matchType corresponds to the leaderboard and is one of those: (Unranked=0, 1v1 Deathmatch=1, Team Deathmatch=2, 1v1 Random Map=3, Team Random Map=4).
|
||||||
|
|
||||||
|
|
||||||
|
https://github.com/SiegeEngineers/aoc-reference-data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Data format:
|
||||||
|
# NAC3 Group Stage
|
||||||
|
NAC3_Group_Stage,1000,1,TheViper,Hera,3-1,2020-01-04
|
||||||
|
|
||||||
|
https://github.com/SiegeEngineers/aoc-reference-data/blob/master/data/events/series.csv
|
||||||
|
|
||||||
|
|
||||||
|
Even if toornament API could be used: it only contains the set result, not the individual games
|
||||||
|
|
||||||
|
Score not enough to know who won which maps?
|
||||||
|
2:0 -> HOST won both
|
||||||
|
2:1 -> Host lost Neutral OR opponents home map
|
||||||
|
|
||||||
|
|
||||||
|
Data of who won which map can be retrieved via AoE Api
|
||||||
|
|
102
AoE.postman_collection.json
Normal file
102
AoE.postman_collection.json
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
{
|
||||||
|
"info": {
|
||||||
|
"_postman_id": "9c561d84-43c5-4557-924f-d97fbbcf6ee6",
|
||||||
|
"name": "AoE",
|
||||||
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||||
|
"_exporter_id": "7683507"
|
||||||
|
},
|
||||||
|
"item": [
|
||||||
|
{
|
||||||
|
"name": "Liquipedia API",
|
||||||
|
"item": [
|
||||||
|
{
|
||||||
|
"name": "Liquipedia",
|
||||||
|
"request": {
|
||||||
|
"method": "GET",
|
||||||
|
"header": [],
|
||||||
|
"url": {
|
||||||
|
"raw": "https://aoe2cm.net/api/draft/SjcLu",
|
||||||
|
"protocol": "https",
|
||||||
|
"host": [
|
||||||
|
"aoe2cm",
|
||||||
|
"net"
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"api",
|
||||||
|
"draft",
|
||||||
|
"SjcLu"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Captains Mode API",
|
||||||
|
"item": [
|
||||||
|
{
|
||||||
|
"name": "Get finished Draft",
|
||||||
|
"request": {
|
||||||
|
"method": "GET",
|
||||||
|
"header": [],
|
||||||
|
"url": {
|
||||||
|
"raw": "https://aoe2cm.net/api/draft/SjcLu",
|
||||||
|
"protocol": "https",
|
||||||
|
"host": [
|
||||||
|
"aoe2cm",
|
||||||
|
"net"
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"api",
|
||||||
|
"draft",
|
||||||
|
"SjcLu"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "API connections",
|
||||||
|
"request": {
|
||||||
|
"method": "GET",
|
||||||
|
"header": [],
|
||||||
|
"url": {
|
||||||
|
"raw": "https://aoe2cm.net/api/connections",
|
||||||
|
"protocol": "https",
|
||||||
|
"host": [
|
||||||
|
"aoe2cm",
|
||||||
|
"net"
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"api",
|
||||||
|
"connections"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Recent Drafts",
|
||||||
|
"request": {
|
||||||
|
"method": "GET",
|
||||||
|
"header": [],
|
||||||
|
"url": {
|
||||||
|
"raw": "https://aoe2cm.net/api/recentdrafts",
|
||||||
|
"protocol": "https",
|
||||||
|
"host": [
|
||||||
|
"aoe2cm",
|
||||||
|
"net"
|
||||||
|
],
|
||||||
|
"path": [
|
||||||
|
"api",
|
||||||
|
"recentdrafts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Start from a core stack version
|
||||||
|
FROM jupyter/datascience-notebook:2023-02-28
|
||||||
|
# Install from the requirements.txt file
|
||||||
|
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
|
||||||
|
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
|
||||||
|
fix-permissions "${CONDA_DIR}" && \
|
||||||
|
fix-permissions "/home/${NB_USER}"
|
195
NAC 4 civ stats - Total.csv
Normal file
195
NAC 4 civ stats - Total.csv
Normal file
@ -0,0 +1,195 @@
|
|||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Civ stats - Total,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Drafts concluded:,122,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Maps played:,497,
|
||||||
|
,,,Aztecs,Bengalis,Berbers,Bohemians,Britons,Bulgarians,Burgundians,Burmese,Byzantines,Celts,Chinese,Cumans,Dravidians,Ethiopians,Franks,Goths,Gurjaras,Hindustanis,Huns,Incas,Italians,Japanese,Khmer,Koreans,Lithuanians,Magyars,Malay,Malians,Mayans,Mongols,Persians,Poles,Portuguese,Saracens,Sicilians,Slavs,Spanish,Tatars,Teutons,Turks,Vietnamese,Vikings
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,Aztecs,Bengalis,Berbers,Bohemians,Britons,Bulgarians,Burgundians,Burmese,Byzantines,Celts,Chinese,Cumans,Dravidians,Ethiopians,Franks,Goths,Gurjaras,Hindustanis,Huns,Incas,Italians,Japanese,Khmer,Koreans,Lithuanians,Magyars,Malay,Malians,Mayans,Mongols,Persians,Poles,Portuguese,Saracens,Sicilians,Slavs,Spanish,Tatars,Teutons,Turks,Vietnamese,Vikings
|
||||||
|
,Times banned,,15,3,3,3,1,1,15,1,17,0,2,30,3,1,3,0,13,23,0,0,2,10,5,0,21,1,3,0,14,9,12,13,17,2,0,0,0,2,0,8,0,1
|
||||||
|
,Times sniped,,11,0,3,0,4,1,24,0,15,0,6,12,2,0,2,0,3,35,0,0,1,17,13,0,22,0,0,0,10,14,9,12,23,0,0,0,0,0,0,5,0,0
|
||||||
|
,Times drafted,,66,30,72,24,34,33,69,16,92,1,73,56,64,7,46,8,62,95,20,4,67,93,82,8,94,27,19,32,77,73,59,71,82,12,1,1,9,23,2,50,1,17
|
||||||
|
,Seen in % of drafts,,66%,27%,61%,22%,29%,28%,69%,14%,89%,1%,61%,70%,55%,7%,40%,7%,61%,97%,16%,3%,57%,84%,71%,7%,94%,23%,18%,26%,75%,67%,58%,69%,81%,11%,1%,1%,7%,20%,2%,48%,1%,15%
|
||||||
|
,Times played,,38,19,39,12,13,16,30,9,48,0,42,31,45,6,26,7,38,44,14,2,41,55,47,2,55,19,10,22,47,41,33,32,43,6,0,1,3,13,2,30,1,12
|
||||||
|
,Seen in % of series,,31%,16%,32%,10%,11%,13%,25%,7%,39%,0%,34%,25%,37%,5%,21%,6%,31%,36%,11%,2%,34%,45%,39%,2%,45%,16%,8%,18%,39%,34%,27%,26%,35%,5%,0%,1%,2%,11%,2%,25%,1%,10%
|
||||||
|
,Won,,25,6,18,4,4,7,16,6,23,0,17,20,23,3,10,5,23,19,9,0,22,30,17,0,24,8,6,10,28,17,18,18,30,3,0,1,1,6,1,13,0,6
|
||||||
|
,Lost,,13,13,21,8,9,9,14,3,25,0,25,11,22,3,16,2,15,25,5,2,19,25,30,2,31,11,4,12,19,24,15,14,13,3,0,0,2,7,1,17,1,6
|
||||||
|
,Win%,,66%,32%,46%,33%,31%,44%,53%,67%,48%,-,40%,65%,51%,50%,38%,71%,61%,43%,64%,0%,54%,55%,36%,0%,44%,42%,60%,45%,60%,41%,55%,56%,70%,50%,-,100%,33%,46%,50%,43%,0%,50%
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,African Reed Beds,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,83,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,28,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,30,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,6%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,0,0,9,0,0,1,0,1,0,0,0,0,4,0,4,0,2,1,2,1,3,10,1,1,3,1,1,4,0,9,1,0,0,0,0,0,1,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,0%,0%,30%,0%,0%,3%,0%,3%,0%,0%,0%,0%,13%,0%,13%,0%,7%,3%,7%,3%,10%,33%,3%,3%,10%,3%,3%,13%,0%,30%,3%,0%,0%,0%,0%,0%,3%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,0,0,5,0,0,1,0,1,0,0,0,0,1,0,1,0,1,1,1,0,1,8,1,0,1,1,1,1,0,3,0,0,0,0,0,0,1,0,0,0,0,0
|
||||||
|
,Lost,,0,0,4,0,0,0,0,0,0,0,0,0,3,0,3,0,1,0,1,1,2,2,0,1,2,0,0,3,0,6,1,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,-,-,56%,-,-,100%,-,100%,-,-,-,-,25%,-,25%,-,50%,100%,50%,0%,33%,80%,100%,0%,33%,100%,100%,25%,-,33%,0%,-,-,-,-,-,100%,-,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Arabia,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,43,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,70,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,59,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,12%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,14,0,0,0,0,0,3,0,4,0,17,4,0,1,7,0,5,11,2,0,1,2,2,0,5,1,0,0,24,5,0,4,3,0,0,0,0,2,0,0,1,0
|
||||||
|
,Seen on % of maps,,24%,0%,0%,0%,0%,0%,5%,0%,7%,0%,29%,7%,0%,2%,12%,0%,8%,19%,3%,0%,2%,3%,3%,0%,8%,2%,0%,0%,41%,8%,0%,7%,5%,0%,0%,0%,0%,3%,0%,0%,2%,0%
|
||||||
|
,Won,,10,0,0,0,0,0,2,0,2,0,5,2,0,1,4,0,2,4,1,0,1,1,0,0,1,1,0,0,15,3,0,2,2,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,4,0,0,0,0,0,1,0,2,0,12,2,0,0,3,0,3,7,1,0,0,1,2,0,4,0,0,0,9,2,0,2,1,0,0,0,0,2,0,0,1,0
|
||||||
|
,Win%,,71%,-,-,-,-,-,67%,-,50%,-,29%,50%,-,100%,57%,-,40%,36%,50%,-,100%,50%,0%,-,20%,100%,-,-,63%,60%,-,50%,67%,-,-,-,-,0%,-,-,0%,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Dry Graveyards,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,91,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,17,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,26,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,5%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,3,0,3,0,0,2,2,0,0,0,1,1,0,0,5,0,3,6,7,0,0,2,2,0,6,4,0,0,1,0,0,0,1,1,0,0,0,2,0,0,0,0
|
||||||
|
,Seen on % of maps,,12%,0%,12%,0%,0%,8%,8%,0%,0%,0%,4%,4%,0%,0%,19%,0%,12%,23%,27%,0%,0%,8%,8%,0%,23%,15%,0%,0%,4%,0%,0%,0%,4%,4%,0%,0%,0%,8%,0%,0%,0%,0%
|
||||||
|
,Won,,1,0,1,0,0,0,2,0,0,0,0,1,0,0,0,0,2,4,4,0,0,0,0,0,5,2,0,0,1,0,0,0,1,0,0,0,0,2,0,0,0,0
|
||||||
|
,Lost,,2,0,2,0,0,2,0,0,0,0,1,0,0,0,5,0,1,2,3,0,0,2,2,0,1,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,33%,-,33%,-,-,0%,100%,-,-,-,0%,100%,-,-,0%,-,67%,67%,57%,-,-,0%,0%,-,83%,50%,-,-,100%,-,-,-,100%,0%,-,-,-,100%,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Enclosed,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,76,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,29,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,37,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,7%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,2,0,7,2,0,1,4,0,0,0,19,4,3,1,0,0,3,6,0,0,1,1,3,0,0,1,0,0,6,4,0,2,4,0,0,0,0,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,5%,0%,19%,5%,0%,3%,11%,0%,0%,0%,51%,11%,8%,3%,0%,0%,8%,16%,0%,0%,3%,3%,8%,0%,0%,3%,0%,0%,16%,11%,0%,5%,11%,0%,0%,0%,0%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,1,0,4,0,0,0,1,0,0,0,11,3,1,1,0,0,2,1,0,0,1,0,2,0,0,0,0,0,3,1,0,1,4,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,1,0,3,2,0,1,3,0,0,0,8,1,2,0,0,0,1,5,0,0,0,1,1,0,0,1,0,0,3,3,0,1,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,50%,-,57%,0%,-,0%,25%,-,-,-,58%,75%,33%,100%,-,-,67%,17%,-,-,100%,0%,67%,-,-,0%,-,-,50%,25%,-,50%,100%,-,-,-,-,-,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Fortified Clearing,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,91,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,30,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,23,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,5%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,3,8,0,2,0,0,5,4,0,0,0,2,0,0,0,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,0,3,3,2,0,0,0,1,0,9,0,0
|
||||||
|
,Seen on % of maps,,13%,35%,0%,9%,0%,0%,22%,17%,0%,0%,0%,9%,0%,0%,0%,0%,4%,0%,0%,0%,0%,0%,9%,0%,0%,0%,0%,0%,4%,0%,0%,13%,13%,9%,0%,0%,0%,4%,0%,39%,0%,0%
|
||||||
|
,Won,,3,2,0,1,0,0,4,3,0,0,0,2,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,2,0,0
|
||||||
|
,Lost,,0,6,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,2,1,0,0,0,1,0,7,0,0
|
||||||
|
,Win%,,100%,25%,-,50%,-,-,80%,75%,-,-,-,100%,-,-,-,-,100%,-,-,-,-,-,50%,-,-,-,-,-,100%,-,-,33%,33%,50%,-,-,-,0%,-,22%,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Frigid Lake,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,63,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,48,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,48,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,10%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,1,0,2,0,0,0,0,0,7,0,0,0,1,1,0,0,3,4,0,0,7,7,27,0,11,0,1,0,3,1,19,0,1,0,0,0,0,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,2%,0%,4%,0%,0%,0%,0%,0%,15%,0%,0%,0%,2%,2%,0%,0%,6%,8%,0%,0%,15%,15%,56%,0%,23%,0%,2%,0%,6%,2%,40%,0%,2%,0%,0%,0%,0%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,1,0,1,0,0,0,0,0,3,0,0,0,1,1,0,0,0,1,0,0,6,2,10,0,5,0,1,0,1,0,14,0,1,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,0,0,1,0,0,0,0,0,4,0,0,0,0,0,0,0,3,3,0,0,1,5,17,0,6,0,0,0,2,1,5,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,100%,-,50%,-,-,-,-,-,43%,-,-,-,100%,100%,-,-,0%,25%,-,-,86%,29%,37%,-,45%,-,100%,-,33%,0%,74%,-,100%,-,-,-,-,-,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Golden Lakes,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,92,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,28,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,21,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,4%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,1,0,3,0,0,0,0,1,3,0,0,0,1,0,0,0,0,0,2,0,5,5,0,0,5,0,5,5,0,0,2,0,3,0,0,0,0,0,1,0,0,0
|
||||||
|
,Seen on % of maps,,5%,0%,14%,0%,0%,0%,0%,5%,14%,0%,0%,0%,5%,0%,0%,0%,0%,0%,10%,0%,24%,24%,0%,0%,24%,0%,24%,24%,0%,0%,10%,0%,14%,0%,0%,0%,0%,0%,5%,0%,0%,0%
|
||||||
|
,Won,,1,0,2,0,0,0,0,1,2,0,0,0,0,0,0,0,0,0,2,0,3,3,0,0,1,0,2,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,2,2,0,0,4,0,3,2,0,0,1,0,3,0,0,0,0,0,1,0,0,0
|
||||||
|
,Win%,,100%,-,67%,-,-,-,-,100%,67%,-,-,-,0%,-,-,-,-,-,100%,-,60%,60%,-,-,20%,-,40%,60%,-,-,50%,-,0%,-,-,-,-,-,0%,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Golden Swamp,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,78,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,38,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,33,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,7%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,0,2,2,0,4,0,0,0,11,0,0,0,6,0,0,0,1,1,0,0,5,1,0,0,7,0,2,1,1,4,5,0,4,0,0,0,0,0,0,2,0,7
|
||||||
|
,Seen on % of maps,,0%,6%,6%,0%,12%,0%,0%,0%,33%,0%,0%,0%,18%,0%,0%,0%,3%,3%,0%,0%,15%,3%,0%,0%,21%,0%,6%,3%,3%,12%,15%,0%,12%,0%,0%,0%,0%,0%,0%,6%,0%,21%
|
||||||
|
,Won,,0,1,2,0,2,0,0,0,5,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,2,1,1,2,2,0,3,0,0,0,0,0,0,1,0,4
|
||||||
|
,Lost,,0,1,0,0,2,0,0,0,6,0,0,0,4,0,0,0,0,1,0,0,4,1,0,0,4,0,0,0,0,2,3,0,1,0,0,0,0,0,0,1,0,3
|
||||||
|
,Win%,,-,50%,100%,-,50%,-,-,-,45%,-,-,-,33%,-,-,-,100%,0%,-,-,20%,0%,-,-,43%,-,100%,100%,100%,50%,40%,-,75%,-,-,-,-,-,-,50%,-,57%
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Hippo Arena,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,57,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,63,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,49,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,10%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,0,2,0,8,5,0,13,0,1,0,0,9,0,0,0,0,2,4,0,0,3,0,4,0,0,1,0,0,1,0,0,17,7,0,0,0,1,0,1,19,0,0
|
||||||
|
,Seen on % of maps,,0%,4%,0%,16%,10%,0%,27%,0%,2%,0%,0%,18%,0%,0%,0%,0%,4%,8%,0%,0%,6%,0%,8%,0%,0%,2%,0%,0%,2%,0%,0%,35%,14%,0%,0%,0%,2%,0%,2%,39%,0%,0%
|
||||||
|
,Won,,0,0,0,3,1,0,6,0,0,0,0,6,0,0,0,0,1,2,0,0,1,0,2,0,0,0,0,0,1,0,0,11,4,0,0,0,0,0,1,10,0,0
|
||||||
|
,Lost,,0,2,0,5,4,0,7,0,1,0,0,3,0,0,0,0,1,2,0,0,2,0,2,0,0,1,0,0,0,0,0,6,3,0,0,0,1,0,0,9,0,0
|
||||||
|
,Win%,,-,0%,-,38%,20%,-,46%,-,0%,-,-,67%,-,-,-,-,50%,50%,-,-,33%,-,50%,-,-,0%,-,-,100%,-,-,65%,57%,-,-,-,0%,-,100%,53%,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Hippopotamus,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,89,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,30,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,28,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,6%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,3,0,8,0,1,0,0,0,1,0,0,1,10,1,0,0,0,1,0,0,0,7,0,0,6,0,0,8,2,5,1,1,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,11%,0%,29%,0%,4%,0%,0%,0%,4%,0%,0%,4%,36%,4%,0%,0%,0%,4%,0%,0%,0%,25%,0%,0%,21%,0%,0%,29%,7%,18%,4%,4%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,1,0,3,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,5,0,0,3,0,0,4,2,1,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,2,0,5,0,1,0,0,0,1,0,0,1,1,1,0,0,0,1,0,0,0,2,0,0,3,0,0,4,0,4,1,1,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,33%,-,38%,-,0%,-,-,-,0%,-,-,0%,90%,0%,-,-,-,0%,-,-,-,71%,-,-,50%,-,-,50%,100%,20%,0%,0%,-,-,-,-,-,-,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Kawasan,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,75,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,35,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,38,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,8%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,4,2,1,0,0,0,0,0,16,0,0,0,7,0,0,0,1,1,0,0,5,10,0,0,5,0,1,4,0,1,4,0,13,0,0,1,0,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,11%,5%,3%,0%,0%,0%,0%,0%,42%,0%,0%,0%,18%,0%,0%,0%,3%,3%,0%,0%,13%,26%,0%,0%,13%,0%,3%,11%,0%,3%,11%,0%,34%,0%,0%,3%,0%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,4,0,0,0,0,0,0,0,6,0,0,0,3,0,0,0,1,0,0,0,2,6,0,0,2,0,0,1,0,0,1,0,11,0,0,1,0,0,0,0,0,0
|
||||||
|
,Lost,,0,2,1,0,0,0,0,0,10,0,0,0,4,0,0,0,0,1,0,0,3,4,0,0,3,0,1,3,0,1,3,0,2,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,100%,0%,0%,-,-,-,-,-,38%,-,-,-,43%,-,-,-,100%,0%,-,-,40%,60%,-,-,40%,-,0%,25%,-,0%,25%,-,85%,-,-,100%,-,-,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Morass,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,96,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,22,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,19,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,4%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,1,0,0,0,0,9,0,2,0,0,0,2,1,0,0,3,1,1,1,0,1,6,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
|
||||||
|
,Seen on % of maps,,5%,0%,0%,0%,0%,47%,0%,11%,0%,0%,0%,11%,5%,0%,0%,16%,5%,5%,5%,0%,5%,32%,0%,0%,5%,42%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,5%
|
||||||
|
,Won,,0,0,0,0,0,4,0,1,0,0,0,2,0,0,0,3,0,1,1,0,1,2,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,1,0,0,0,0,5,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,4,0,0,1,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
|
||||||
|
,Win%,,0%,-,-,-,-,44%,-,50%,-,-,-,100%,0%,-,-,100%,0%,100%,100%,-,100%,33%,-,-,0%,50%,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,0%
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Northern Isles,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,94,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,24,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,19,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,4%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,0,5,0,0,0,0,1,0,3,0,0,0,8,0,0,0,0,0,0,0,10,1,0,1,1,0,0,0,0,0,1,0,3,0,0,0,0,0,0,0,0,4
|
||||||
|
,Seen on % of maps,,0%,26%,0%,0%,0%,0%,5%,0%,16%,0%,0%,0%,42%,0%,0%,0%,0%,0%,0%,0%,53%,5%,0%,5%,5%,0%,0%,0%,0%,0%,5%,0%,16%,0%,0%,0%,0%,0%,0%,0%,0%,21%
|
||||||
|
,Won,,0,3,0,0,0,0,0,0,3,0,0,0,3,0,0,0,0,0,0,0,5,1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,2
|
||||||
|
,Lost,,0,2,0,0,0,0,1,0,0,0,0,0,5,0,0,0,0,0,0,0,5,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,2
|
||||||
|
,Win%,,-,60%,-,-,-,-,0%,-,100%,-,-,-,38%,-,-,-,-,-,-,-,50%,100%,-,0%,0%,-,-,-,-,-,0%,-,67%,-,-,-,-,-,-,-,-,50%
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Outcrop,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,77,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,26,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,36,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,7%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,5,0,3,0,3,0,2,0,2,0,5,8,0,2,0,0,10,6,0,1,0,1,0,0,2,0,0,0,6,1,0,3,0,3,0,0,1,8,0,0,0,0
|
||||||
|
,Seen on % of maps,,14%,0%,8%,0%,8%,0%,6%,0%,6%,0%,14%,22%,0%,6%,0%,0%,28%,17%,0%,3%,0%,3%,0%,0%,6%,0%,0%,0%,17%,3%,0%,8%,0%,8%,0%,0%,3%,22%,0%,0%,0%,0%
|
||||||
|
,Won,,2,0,0,0,1,0,1,0,2,0,1,4,0,0,0,0,8,4,0,0,0,1,0,0,1,0,0,0,3,0,0,2,0,2,0,0,0,4,0,0,0,0
|
||||||
|
,Lost,,3,0,3,0,2,0,1,0,0,0,4,4,0,2,0,0,2,2,0,1,0,0,0,0,1,0,0,0,3,1,0,1,0,1,0,0,1,4,0,0,0,0
|
||||||
|
,Win%,,40%,-,0%,-,33%,-,50%,-,100%,-,20%,50%,-,0%,-,-,80%,67%,-,0%,-,100%,-,-,50%,-,-,-,50%,0%,-,67%,-,67%,-,-,0%,50%,-,-,-,-
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Rocky Forest,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times banned:,83,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times picked:,32,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Total times played:,31,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,% of all played maps:,6%,
|
||||||
|
,,, ,,,, ,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||||
|
,Times played,,1,0,1,0,0,3,0,1,0,0,0,0,4,0,10,4,6,2,0,0,0,2,6,0,3,3,0,0,2,11,0,2,1,0,0,0,0,0,0,0,0,0
|
||||||
|
,Seen on % of maps,,3%,0%,3%,0%,0%,10%,0%,3%,0%,0%,0%,0%,13%,0%,32%,13%,19%,6%,0%,0%,0%,6%,19%,0%,10%,10%,0%,0%,6%,35%,0%,6%,3%,0%,0%,0%,0%,0%,0%,0%,0%,0%
|
||||||
|
,Won,,1,0,0,0,0,2,0,0,0,0,0,0,3,0,5,2,4,1,0,0,0,1,1,0,2,0,0,0,0,7,0,1,1,0,0,0,0,0,0,0,0,0
|
||||||
|
,Lost,,0,0,1,0,0,1,0,1,0,0,0,0,1,0,5,2,2,1,0,0,0,1,5,0,1,3,0,0,2,4,0,1,0,0,0,0,0,0,0,0,0,0
|
||||||
|
,Win%,,100%,-,0%,-,-,67%,-,0%,-,-,-,-,75%,-,50%,50%,67%,50%,-,-,-,50%,17%,-,67%,0%,-,-,0%,64%,-,50%,100%,-,-,-,-,-,-,-,-,-
|
|
332
jupyter-data/AoE-data.ipynb
Normal file
332
jupyter-data/AoE-data.ipynb
Normal file
@ -0,0 +1,332 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 16,
|
||||||
|
"id": "4817ec9b-c8e3-45a4-97dc-acee536e4d77",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import requests\n",
|
||||||
|
"import json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 4,
|
||||||
|
"id": "a05a0d5e-012e-46b8-a52c-7f8a3a412e62",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"nac4_finals_draft_id='FMHZx'"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 22,
|
||||||
|
"id": "16438549-78b6-4865-ba7d-fb90486579e3",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def download_draft_json(draft_id):\n",
|
||||||
|
" url = \"https://aoe2cm.net/api/draft/{}\".format(draft_id)\n",
|
||||||
|
"\n",
|
||||||
|
" payload={}\n",
|
||||||
|
" headers = {}\n",
|
||||||
|
"\n",
|
||||||
|
" response = requests.request(\"GET\", url, headers=headers, data=payload)\n",
|
||||||
|
"\n",
|
||||||
|
" # print(response.text)\n",
|
||||||
|
" draft_json_string = response.text\n",
|
||||||
|
" draft_dict = json.loads(draft_json_string)\n",
|
||||||
|
" return draft_dict"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 20,
|
||||||
|
"id": "527953cb-e30f-4599-a5e6-b5f8ce3b678d",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# draft_dict['events']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 23,
|
||||||
|
"id": "4f068845-8292-4b38-bd2b-0d89a2eea434",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"marcel_vs_canuck= 'lipeX'"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 25,
|
||||||
|
"id": "8a375968-3d08-46e2-b7be-45a926de40f1",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"marcel_vs_canuck_json = download_draft_json(marcel_vs_canuck)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 44,
|
||||||
|
"id": "69ecf8fd-b437-4632-9f6e-1172a34badf0",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# marcel_vs_canuck_json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 29,
|
||||||
|
"id": "c45783ac-50c0-4cf2-b451-23d11b5f5079",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import pandas as pd"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 36,
|
||||||
|
"id": "a9f08fa9-4f90-4ba1-a639-78ec888ac86c",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"draft_events = marcel_vs_canuck_json['events']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 41,
|
||||||
|
"id": "527935c9-1f49-4c7f-8b4a-b95475a66068",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"draft_events_df = pd.DataFrame.from_dict(draft_events)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 45,
|
||||||
|
"id": "7e2bb0c3-ab79-4e95-94f7-52a590e8dfe6",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"draft_picks = draft_events_df[draft_events_df['actionType'] == 'pick']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 46,
|
||||||
|
"id": "99dedcda-5664-492b-a076-7fe059948660",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"<div>\n",
|
||||||
|
"<style scoped>\n",
|
||||||
|
" .dataframe tbody tr th:only-of-type {\n",
|
||||||
|
" vertical-align: middle;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe tbody tr th {\n",
|
||||||
|
" vertical-align: top;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe thead th {\n",
|
||||||
|
" text-align: right;\n",
|
||||||
|
" }\n",
|
||||||
|
"</style>\n",
|
||||||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||||||
|
" <thead>\n",
|
||||||
|
" <tr style=\"text-align: right;\">\n",
|
||||||
|
" <th></th>\n",
|
||||||
|
" <th>player</th>\n",
|
||||||
|
" <th>executingPlayer</th>\n",
|
||||||
|
" <th>actionType</th>\n",
|
||||||
|
" <th>chosenOptionId</th>\n",
|
||||||
|
" <th>isRandomlyChosen</th>\n",
|
||||||
|
" <th>offset</th>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </thead>\n",
|
||||||
|
" <tbody>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>2</th>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>pick</td>\n",
|
||||||
|
" <td>Koala</td>\n",
|
||||||
|
" <td>False</td>\n",
|
||||||
|
" <td>13973</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>3</th>\n",
|
||||||
|
" <td>GUEST</td>\n",
|
||||||
|
" <td>GUEST</td>\n",
|
||||||
|
" <td>pick</td>\n",
|
||||||
|
" <td>Nordinseln</td>\n",
|
||||||
|
" <td>False</td>\n",
|
||||||
|
" <td>26925</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>8</th>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>pick</td>\n",
|
||||||
|
" <td>Vier Seen</td>\n",
|
||||||
|
" <td>False</td>\n",
|
||||||
|
" <td>54947</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </tbody>\n",
|
||||||
|
"</table>\n",
|
||||||
|
"</div>"
|
||||||
|
],
|
||||||
|
"text/plain": [
|
||||||
|
" player executingPlayer actionType chosenOptionId isRandomlyChosen offset\n",
|
||||||
|
"2 HOST HOST pick Koala False 13973\n",
|
||||||
|
"3 GUEST GUEST pick Nordinseln False 26925\n",
|
||||||
|
"8 HOST HOST pick Vier Seen False 54947"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 46,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"draft_picks"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "17a9c895-c486-4b53-b34d-917e6e94d0fc",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# the last pick is the neutral map\n",
|
||||||
|
"def mark_neutral_map(draft_picks):\n",
|
||||||
|
" draft_picks.\n",
|
||||||
|
" draft_picks['neutral_map'] = "
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 49,
|
||||||
|
"id": "1a82cae5-dd3d-4799-baa1-be30f550d19b",
|
||||||
|
"metadata": {
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"<div>\n",
|
||||||
|
"<style scoped>\n",
|
||||||
|
" .dataframe tbody tr th:only-of-type {\n",
|
||||||
|
" vertical-align: middle;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe tbody tr th {\n",
|
||||||
|
" vertical-align: top;\n",
|
||||||
|
" }\n",
|
||||||
|
"\n",
|
||||||
|
" .dataframe thead th {\n",
|
||||||
|
" text-align: right;\n",
|
||||||
|
" }\n",
|
||||||
|
"</style>\n",
|
||||||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
||||||
|
" <thead>\n",
|
||||||
|
" <tr style=\"text-align: right;\">\n",
|
||||||
|
" <th></th>\n",
|
||||||
|
" <th>player</th>\n",
|
||||||
|
" <th>executingPlayer</th>\n",
|
||||||
|
" <th>actionType</th>\n",
|
||||||
|
" <th>chosenOptionId</th>\n",
|
||||||
|
" <th>isRandomlyChosen</th>\n",
|
||||||
|
" <th>offset</th>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </thead>\n",
|
||||||
|
" <tbody>\n",
|
||||||
|
" <tr>\n",
|
||||||
|
" <th>8</th>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>HOST</td>\n",
|
||||||
|
" <td>pick</td>\n",
|
||||||
|
" <td>Vier Seen</td>\n",
|
||||||
|
" <td>False</td>\n",
|
||||||
|
" <td>54947</td>\n",
|
||||||
|
" </tr>\n",
|
||||||
|
" </tbody>\n",
|
||||||
|
"</table>\n",
|
||||||
|
"</div>"
|
||||||
|
],
|
||||||
|
"text/plain": [
|
||||||
|
" player executingPlayer actionType chosenOptionId isRandomlyChosen offset\n",
|
||||||
|
"8 HOST HOST pick Vier Seen False 54947"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 49,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"draft_picks.tail(1)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3 (ipykernel)",
|
||||||
|
"language": "python",
|
||||||
|
"name": "python3"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"codemirror_mode": {
|
||||||
|
"name": "ipython",
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"file_extension": ".py",
|
||||||
|
"mimetype": "text/x-python",
|
||||||
|
"name": "python",
|
||||||
|
"nbconvert_exporter": "python",
|
||||||
|
"pygments_lexer": "ipython3",
|
||||||
|
"version": "3.10.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 5
|
||||||
|
}
|
7507
raw_data/players.yaml
Normal file
7507
raw_data/players.yaml
Normal file
File diff suppressed because it is too large
Load Diff
4
raw_data/pluenderparty.csv
Normal file
4
raw_data/pluenderparty.csv
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Game_id Player0 Player1 Map Result
|
||||||
|
0 Marcel5751 Canuck NorthernIles 1
|
||||||
|
1 Marcel5751 Canuck 4lakes 0
|
||||||
|
2 Marcel5751 Canuck Koala 1
|
|
Loading…
x
Reference in New Issue
Block a user