Analysiscsv.py for extracting analysis and exporting as CSV

Overview

wcc_analysis

Lichess page documentation: https://lichess.org/page/world-championships

Each WCC has a study, studies are fetched using: https://lichess.org/api#operation/studyAllChaptersPgn

Source PGNs are found in /analysed_pgns

Analysiscsv.py for extracting analysis and exporting as CSV - sample export is found in analysis.csv

Visualize.py takes in CSV and makes some charts, examples are shown below.

Output 1: Table of games by combined ACPL

Year Game No. White Player Black Player Combined ACPL
2021 3 Nepomniachtchi, Ian Carlsen, Magnus 6.62
1978 15 Kortschnoj, Viktor Karpov, Anatoly 6.67
1987 18 Kasparov, Gary Karpov, Anatoly 6.69
1972 16 Fischer, Robert James Spassky, Boris V 6.86
2014 9 Carlsen, Magnus Anand, Viswanathan 6.95
.... .... .... ... ...
1886 11 Zukertort, Johannes Hermann Steinitz, William 153.59
1957 9 Botvinnik, Mikhail Smyslov, Vassily 154.90
1892 19 Chigorin, Mikhail Steinitz, William 167.13
1889 15 Chigorin, Mikhail Steinitz, William 211.98
1892 15 Chigorin, Mikhail Steinitz, William 212.33

Output 2: Some graphs of average combined acpl vs. time

Boxplot2 Boxplot_acpl

Output 3: All games by ACPL vs. num moves

Note some games are off the table in both x and y axes. Gamelengthplot

You might also like...
Larch: Applications and Python Library for Data Analysis of X-ray Absorption Spectroscopy (XAS, XANES, XAFS, EXAFS), X-ray Fluorescence (XRF) Spectroscopy and Imaging

Larch: Data Analysis Tools for X-ray Spectroscopy and More Documentation: http://xraypy.github.io/xraylarch Code: http://github.com/xraypy/xraylarch L

Python script to automate the plotting and analysis of percentage depth dose and dose profile simulations in TOPAS.

topas-create-graphs A script to automatically plot the results of a topas simulation Works for percentage depth dose (pdd) and dose profiles (dp). Dep

Validated, scalable, community developed variant calling, RNA-seq and small RNA analysis
Validated, scalable, community developed variant calling, RNA-seq and small RNA analysis

Validated, scalable, community developed variant calling, RNA-seq and small RNA analysis. You write a high level configuration file specifying your in

Probabilistic reasoning and statistical analysis in TensorFlow

TensorFlow Probability TensorFlow Probability is a library for probabilistic reasoning and statistical analysis in TensorFlow. As part of the TensorFl

Sensitivity Analysis Library in Python (Numpy). Contains Sobol, Morris, Fractional Factorial and FAST methods.

Sensitivity Analysis Library (SALib) Python implementations of commonly used sensitivity analysis methods. Useful in systems modeling to calculate the

Scraping and analysis of leetcode-compensations page.
Scraping and analysis of leetcode-compensations page.

Leetcode compensations report Scraping and analysis of leetcode-compensations page.

Tablexplore is an application for data analysis and plotting built in Python using the PySide2/Qt toolkit.
Tablexplore is an application for data analysis and plotting built in Python using the PySide2/Qt toolkit.

Tablexplore is an application for data analysis and plotting built in Python using the PySide2/Qt toolkit.

 A data analysis using python and pandas to showcase trends in school performance.
A data analysis using python and pandas to showcase trends in school performance.

A data analysis using python and pandas to showcase trends in school performance. A data analysis to showcase trends in school performance using Panda

Toolchest provides APIs for scientific and bioinformatic data analysis.

Toolchest Python Client Toolchest provides APIs for scientific and bioinformatic data analysis. It allows you to abstract away the costliness of runni

Comments
  • Missing Anand vs Topalov (2010) Championship

    Missing Anand vs Topalov (2010) Championship

    Hi, nice analysis. A minor detail, you are missing the Anand vs Topalov (2010) match (and analysed_pgn folder contains 2008 match duplicate data with a rename). For completion's sake, maybe you would want to re-run with 2010 included.

    opened by natrys 2
  • Post match update?

    Post match update?

    The charts are very nice, but for them to give a fair picture the analysis should include all games of the Carlsen-Nepo match that has now finished. Very curious to see if it is still more accurate than previous world championships!

    opened by dennisjaheruddin 1
  • Compare total CPL or scaled CPL?

    Compare total CPL or scaled CPL?

    Hi, I wonder if anyone has tried plotting the total centipawn loss (ACPL × number of moves) to see if that yields anything more interesting.

    ACPL is expected to be low in drawn games, because the computer can usually tell it's a draw many moves before the players agree. For those last few moves, all positions will be evaluated as very close to 0 (or perhaps exactly 0) and that brings down the ACPL. But the total CPL would not be affected by a long run of 0.0 evaluations in the endgame.

    Conversely, if an overwhelmingly winning or losing position is reached in a time scramble, then CPL becomes less important: a 500 CPL might be a blunder if it took you from +4 to -1, but it hardly matters if it's a drop from +25 to +20 when you're trying to save as much clock time as possible. Multiplying each move's CPL by something like sgn(evaluation)==sgn(old_evaluation)?exp(-abs(evaluation+old_evaluation)):1 should dampen the effect of skewed-position time scrambles. (but I say that without having actually checked how often this occurs in master games)

    opened by ssb22 1
Owner
null
Statistical Analysis 📈 focused on statistical analysis and exploration used on various data sets for personal and professional projects.

Statistical Analysis ?? This repository focuses on statistical analysis and the exploration used on various data sets for personal and professional pr

Andy Pham 1 Sep 3, 2022
Produces a summary CSV report of an Amber Electric customer's energy consumption and cost data.

Amber Electric Usage Summary This is a command line tool that produces a summary CSV report of an Amber Electric customer's energy consumption and cos

Graham Lea 12 May 26, 2022
This creates a ohlc timeseries from downloaded CSV files from NSE India website and makes a SQLite database for your research.

NSE-timeseries-form-CSV-file-creator-and-SQL-appender- This creates a ohlc timeseries from downloaded CSV files from National Stock Exchange India (NS

PILLAI, Amal 1 Oct 2, 2022
A set of functions and analysis classes for solvation structure analysis

SolvationAnalysis The macroscopic behavior of a liquid is determined by its microscopic structure. For ionic systems, like batteries and many enzymes,

MDAnalysis 19 Nov 24, 2022
Convert tables stored as images to an usable .csv file

Convert an image of numbers to a .csv file This Python program aims to convert images of array numbers to corresponding .csv files. It uses OpenCV for

null 711 Dec 26, 2022
a tool that compiles a csv of all h1 program stats

h1stats - h1 Program Stats Scraper This python3 script will call out to HackerOne's graphql API and scrape all currently active programs for informati

Evan 40 Oct 27, 2022
For making Tagtog annotation into csv dataset

tagtog_relation_extraction for making Tagtog annotation into csv dataset How to Use On Tagtog 1. Go to Project > Downloads 2. Download all documents,

hyeong 4 Dec 28, 2021
CSV database for chihuahua (HUAHUA) blockchain transactions

super-fiesta Shamelessly ripped components from https://github.com/hodgerpodger/staketaxcsv - Thanks for doing all the hard work. This code does only

Arlene Macciaveli 1 Jan 7, 2022
🧪 Panel-Chemistry - exploratory data analysis and build powerful data and viz tools within the domain of Chemistry using Python and HoloViz Panel.

???? ??. The purpose of the panel-chemistry project is to make it really easy for you to do DATA ANALYSIS and build powerful DATA AND VIZ APPLICATIONS within the domain of Chemistry using using Python and HoloViz Panel.

Marc Skov Madsen 97 Dec 8, 2022
First and foremost, we want dbt documentation to retain a DRY principle. Every time we repeat ourselves, we waste our time. Second, we want to understand column level lineage and automate impact analysis.

dbt-osmosis First and foremost, we want dbt documentation to retain a DRY principle. Every time we repeat ourselves, we waste our time. Second, we wan

Alexander Butler 150 Jan 6, 2023