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 hashes)

Uploaded Source

Supported by

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