From 1f46b3a7c86b77c5931a97a235bdf2e9fa71c960 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Thu, 17 Mar 2022 21:13:06 +0200 Subject: fix comments --- AllAboutData/getData.py | 5 ++--- 1 file 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) -- cgit v1.2.3