Skip to main content

Correlation Coefficient Table for Splatoon s League

Project description

Correlation coefficient table is created from the data of league matches in Nintendo’s competitive game “Splatoon 2”.

Description

The output from ikaWidget2 is a tscv file that calculates the correlation coefficient table of Kill/Death etc. in a league, and outputs it in Excel.

App Store : https://apps.apple.com/jp/app/ikawidget-2/id1271025591

Google Play : https://play.google.com/store/apps/details?id=com.flapg.ikawidget2&hl=ja

Example of output (GUT area)

Dependencies

  • Python

  • pandas

  • DateTime

  • openpyxl

Install

pip install splatoon_league_corr

or

pip install splatoon_league_corr-x.x.x.tar.gz

Usage

*splatoon_league_corr* provides the following classes and functions.

class ika_data

Class for storing player data.

Constructor

def __init__(self,pid,jpname,usname)

Member

Description

pid

The player’s PrincipalIDPrincipalID is internal data and cannot be confirmed in the game, but can be obtained from the tcsv file and other documents generated by ikaWidget2.

jpname

Name to be displayed in the correlation coefficient table output force

usname

The name displayed in the list of record data.

Example

player = splatoon_league_corr.ika_data('824a58fc35365d11','まるや','maruya')

class team_data

A team class consisting of four ika_data.

The constructor

def __init__(self,player,friend1,friend2,friend3)

Member

Description

player

Data of the person who output the tscv file

friend1~3

Friend data for the same team

Example

myteam = splatoon_league_corr.team_data(player,friend1,friend2,friend3)

calc_corr_number_of_games(filename,save_dir,myteam,n)

Outputs an Excel file (result.xlsx) of the correlation coefficient table with the number of games as an argument.

Argument

Description.

Type

filename

The path of the tcsv file to enter

str

save_di r

Directory name to store the output data (automatically generated)

str

myteam

The team_data class

team_dat a

n

The number of games for calculating the correlation coefficient table

int

Example

splatoon_league_corr.calc_corr_number_of_games('ikaWidgetCSV_20201009231053.tcsv','output',myteam,50)

calc_corr_days(filename,save_dir,myteam,datemin,datemax)

Outputs an Excel file (result.xlsx) of a correlation coefficient table with the period of a games as an argument.

Argument

Description.

Type

filename

The path of the tcsv file to enter

str

save_dir

Directory name to store the output data (automatically generated)

str

myteam

The team_data class

team_da ta

datemin, datemax

The period of the games (datemin to datemax) described in YYMMDD when calculating the correlation coefficient table.

str

Example

splatoon_league_corr.calc_corr_days('ikaWidgetCSV_20201009231053.tcsv','output_date',myteam,'20200901','20201030')

Note

Because of the difficulty in obtaining data from others’ ikaWidget2, debugging in various patterns was not performed.

Author

https://qiita.com/JmpM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

splatoon_league_corr-1.0.1.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file splatoon_league_corr-1.0.1.tar.gz.

File metadata

  • Download URL: splatoon_league_corr-1.0.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7

File hashes

Hashes for splatoon_league_corr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 41edeeaed23639dafb582fe6e1283a1d03bf6900bfd7898133426c187ed4e5e5
MD5 230ecf74f7931cc48855d623750a016d
BLAKE2b-256 59487bd527f2ac9c10f0902cb5926b6a3d5ad34c5c77ca4af133fcbaba6d66fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page