WinLoss Example

[1]:
from ratingslib.datasets.filenames import dataset_path, FILENAME_EPL_2018_2019_20_GAMES
from ratingslib.ratings.winloss import Winloss
filename = dataset_path(FILENAME_EPL_2018_2019_20_GAMES)
Winloss(normalization=False).rate_from_file(filename)
[1]:
Item rating ranking
0 Arsenal 0.0 3
1 Bournemouth 2.0 1
2 Brighton 1.0 2
3 Burnley 0.0 3
4 Cardiff 0.0 3
5 Chelsea 2.0 1
6 Crystal Palace 1.0 2
7 Everton 1.0 2
8 Fulham 0.0 3
9 Huddersfield 0.0 3
10 Leicester 1.0 2
11 Liverpool 2.0 1
12 Man City 2.0 1
13 Man United 1.0 2
14 Newcastle 0.0 3
15 Southampton 0.0 3
16 Tottenham 2.0 1
17 Watford 2.0 1
18 West Ham 0.0 3
19 Wolves 0.0 3