diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2022-03-18 00:47:50 +0200 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2022-03-18 00:47:50 +0200 |
commit | 8415605567a2d95f508eb21becba1c43e0d67b1f (patch) | |
tree | 3f9081a84359c60df66e106468d09fe176e782ef /api | |
parent | 7e99f95da0fc82f77591268371ff2f68bccdf3b5 (diff) |
delete api utils file
Diffstat (limited to 'api')
-rw-r--r-- | api/utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/api/utils.py b/api/utils.py deleted file mode 100644 index 069f072..0000000 --- a/api/utils.py +++ /dev/null @@ -1,18 +0,0 @@ -import pandas as pd - -# Making relative paths. On windows slashes would be backwards -# It is probably not the best way. -relPathTeams = "../../AllAboutData/Data/NBAteams.csv" -relPathPlayers = "../../AllAboutData/Data/Players/" - -def getTeamNames(): - ''' - Returns dictionary with fetched teams' names as keys - and full_names as values. - ''' - - teamsDf = pd.read_csv(relPathTeams).to_dict() - team_names = {} - for el in range(len(teamsDf["name"])): - team_names.update({teamsDf["name"][el] : teamsDf["full_name"][el]}) - return team_names |