Skip to content

Commit f4e491a

Browse files
authored
Merge pull request #2 from stackql/feature/updates
notebook updates
2 parents 2791781 + 918d3b5 commit f4e491a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: notebooks/aws/aws.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"source": [
2828
"%%stackql\n",
2929
"SELECT \n",
30-
"split_part(instanceState, '\\n', 3) as instanceState, \n",
30+
"state, \n",
3131
"count(*) as num_instances\n",
3232
"FROM aws.ec2.instances \n",
3333
"WHERE region IN ($regions)\n",
34-
"GROUP BY split_part(instanceState, '\\n', 3)"
34+
"GROUP BY state"
3535
]
3636
},
3737
{
@@ -40,7 +40,7 @@
4040
"metadata": {},
4141
"outputs": [],
4242
"source": [
43-
"_.plot(kind='bar', title='Instances by State', x='instanceState', y='num_instances')"
43+
"_.plot(kind='bar', title='Instances by State', x='state', y='num_instances')"
4444
]
4545
},
4646
{

0 commit comments

Comments
 (0)