Skip to content

Commit

Permalink
Merge pull request #2 from stackql/feature/updates
Browse files Browse the repository at this point in the history
notebook updates
  • Loading branch information
jeffreyaven authored Jul 17, 2024
2 parents 2791781 + 918d3b5 commit f4e491a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/aws/aws.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"source": [
"%%stackql\n",
"SELECT \n",
"split_part(instanceState, '\\n', 3) as instanceState, \n",
"state, \n",
"count(*) as num_instances\n",
"FROM aws.ec2.instances \n",
"WHERE region IN ($regions)\n",
"GROUP BY split_part(instanceState, '\\n', 3)"
"GROUP BY state"
]
},
{
Expand All @@ -40,7 +40,7 @@
"metadata": {},
"outputs": [],
"source": [
"_.plot(kind='bar', title='Instances by State', x='instanceState', y='num_instances')"
"_.plot(kind='bar', title='Instances by State', x='state', y='num_instances')"
]
},
{
Expand Down

0 comments on commit f4e491a

Please sign in to comment.