Skip to content

Commit 7fa5f53

Browse files
authored
Update analyze-twitch-data-with-sqlite.mdx
1 parent ab104ee commit 7fa5f53

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

projects/analyze-twitch-data-with-sqlite/analyze-twitch-data-with-sqlite.mdx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ So the **streamers2021.csv** data looks like:
7272
But behind the scenes, the plain text is just:
7373

7474
```output
75-
Channel, Watch time, Stream time, Peak viewers, Average viewers, Followers, Followers gained, Views gained, Partnered, Mature, Language
75+
channel, watch_time, stream_time, peak_viewers, average_viewers, followers, followers_gained, views_gained, partnered, mature, language
7676
xQcOW, 6196161750, 215250, 222720, 27716, 3246298, 1734810, 93036735, True, False, English
7777
summit1g, 6091677300, 211845, 310998, 25610, 5310163, 1370184, 89705964, True, False, English
7878
Gaules, 5644590915, 515280, 387315, 109761767635, 1023779102611607, True
@@ -83,17 +83,17 @@ Tfue, 3671000070, 123660, 285644, 29602, 8938903, 206842478998587, False
8383

8484
The column names are:
8585

86-
- `Channel`
87-
- `Watch time`
88-
- `Stream time`
89-
- `Peak viewers`
90-
- `Average viewers`
91-
- `Followers`
92-
- `Followers gained`
93-
- `Views gained`
94-
- `Partnered`
95-
- `Mature`
96-
- `Language`
86+
- `channel`
87+
- `watch_time`
88+
- `stream_time`
89+
- `peak_viewers`
90+
- `average_viewers`
91+
- `followers`
92+
- `followers_gained`
93+
- `views_gained`
94+
- `partnered`
95+
- `mature`
96+
- `language`
9797

9898
And the **streamers2024.csv** data looks like:
9999

@@ -127,6 +127,8 @@ The column names are:
127127
- `MOST_ACTIVE_DAY`
128128
- `DAY_WITH_MOST_FOLLOWERS_GAINED`
129129

130+
Go in an update all the column names to lowercase.
131+
130132
There are 1,001 rows in each of the datasets because there is 1 column for the headings and 1,000 streamers each!
131133

132134
Let’s move back into our terminal and start the database.

0 commit comments

Comments
 (0)