-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest2.py
46 lines (35 loc) · 982 Bytes
/
test2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import matplotlib.pyplot as plt
import read_write_path as rw
import map_functions as m
import pandas as pd
import numpy as np
import os
import re
import sys
'''
func(n1, n2)
return (games together)
'''
df = rw.read_player_table()
print(df)
str_test = ['GoTrend001', 'GT12', 'sssAA']
r = re.compile('^GoTrend|^GT')
for t in str_test:
if re.match(r, t):
print(t)
# df = rw.read_level_up_player_table()
# f_index = 0
# for index, player in df.iterrows():
# print(player['name'])
# print(player['rank'])
# plt.title(player['name']) #.encode('utf-8')
# plt.xlabel('Game')
# plt.ylabel('Rank')
# plt.style.use('seaborn')
# x = [i for i in range(len(player['rank']))]
# y = player['rank']
# plt.plot(x, y, marker='o', color = '#88c999' )
# path = rw.save_graph_path(f'fuck_this_shit\\rank_graph_{f_index}.png')
# f_index += 1
# plt.savefig(path)
# plt.cla()