summaryrefslogtreecommitdiff
path: root/AllAboutData/getData.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-03-17 21:13:06 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-03-17 21:13:06 +0200
commit1f46b3a7c86b77c5931a97a235bdf2e9fa71c960 (patch)
tree6cbbbfbf0251750213155d4e8fdbc9a032fad84d /AllAboutData/getData.py
parent2e4f88a0c7dc518fe4c064d4428bef82f6fee1c8 (diff)
fix comments
Diffstat (limited to 'AllAboutData/getData.py')
-rw-r--r--AllAboutData/getData.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/AllAboutData/getData.py b/AllAboutData/getData.py
index 0a1a1f5..5bf8367 100644
--- a/AllAboutData/getData.py
+++ b/AllAboutData/getData.py
@@ -57,7 +57,7 @@ def getTeamsData(url, headers):
teamsDf.set_index("id")
teamsDf = teamsDf.drop("id", axis=1)
- # Creating new Data dir to avoid duplicates (due appending)
+ # New Data dir to avoid duplicates (due appending players later)
utils.deleteDataDir()
utils.addDataDir()
@@ -88,7 +88,7 @@ def getPlayerData(url, headers):
response = requests.request("GET", url+"players", headers=headers, params=querystring)
data = response.json()["data"]
- # Making dataframe for each player to store it suitable file
+ # Making dataframe for each player to store it in suitable file
for player in data:
teamName = player["team"]["full_name"]
playerDf = pd.DataFrame(columns=["first_name", "last_name",
@@ -115,7 +115,6 @@ def getPlayerData(url, headers):
if __name__ == "__main__":
-
getTeamsData(url, headers)
getPlayerData(url, headers)