Query and Visualize
Query SQL with athena.query.execute()
Initialize default database or specify id of another connected database. Ask Athena team if unclear.
Put your query here
Run the query and convert to Pandas dataframe for subsequent analysis
Visualize data using Athena Notebooks Sidebar
Once you have an SQL output, you can harness the power and flexibility of visualisations or further analysis using Python. In Athena Notebooks, you can click “Chat” in the top right corner to ask Athena for help writing code for visualizations you need. Copy and paste a dataframe headers and 2-3 rows to give Athena all needed context.
-
Write code to visualize this table: route_id route_source route_destination passenger_id customer_name total_tickets 0 1 West Sylvia Williamsshire 816 Jaruwan Rogers 13 1 1 West Sylvia Williamsshire 679 Karen Tapp 9
-
Sure, here’s the code: …
Copy & run the code in the notebook.