Skip to content

Commit

Permalink
update sql and python scripts to work properly (github#268)
Browse files Browse the repository at this point in the history
Co-authored-by: Miranda Auhl <miranda@timescale.com>
  • Loading branch information
mirandaauhl and mirandaauhl authored Aug 18, 2021
1 parent 385b6f0 commit f01c944
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions timescaledb/tutorials/nfl-analytics/ingest-and-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ CREATE TABLE tracking (
o DOUBLE PRECISION,
dir DOUBLE PRECISION,
event TEXT,
nflId INT,
player_id INT,
displayName TEXT,
jerseyNumber INT,
position TEXT,
frameId INT,
team TEXT,
gameid INT,
player_id INT,
playid INT,
playDirection TEXT,
route TEXT
);
Expand All @@ -132,7 +132,7 @@ CREATE TABLE stadium_info (
team_name TEXT,
team_abbreviation TEXT,
time_zone TEXT
)
);

```

Expand Down Expand Up @@ -200,9 +200,9 @@ insert("data/scores.csv", "scores")

# iterate over each week's CSV file and insert them
for i in range(1, 18):
print("Inserting week{i}".format(str(i)))
insert("data/week{i}.csv".format(i=i), "tracking")

print(f'Inserting week{i}'.format(i = str(i)))
insert(f'data/week{i}.csv'.format(i=i), "tracking")
conn.close()
```

Expand Down

0 comments on commit f01c944

Please sign in to comment.