From 918d3b5708d9fb7640aa1342a35c34a519aac730 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Wed, 17 Jul 2024 13:13:51 +1000 Subject: [PATCH] notebook updates --- notebooks/aws/aws.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/aws/aws.ipynb b/notebooks/aws/aws.ipynb index 10fdd5a..33f657e 100644 --- a/notebooks/aws/aws.ipynb +++ b/notebooks/aws/aws.ipynb @@ -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" ] }, { @@ -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')" ] }, {