Skip to content

Instantly share code, notes, and snippets.

@stichbury
Created May 9, 2024 11:14
Show Gist options
  • Save stichbury/d61229eec2a0ffe8a7080be3fdece1a6 to your computer and use it in GitHub Desktop.
Save stichbury/d61229eec2a0ffe8a7080be3fdece1a6 to your computer and use it in GitHub Desktop.
Two further calls to Vizro-AI
# Total views of the top performing stable pages
top_performing_pages_fig = vizro_ai.plot(df, "Collate rows of data for Path where Version==stable. Create a horizontal bar chart describing the total Views for the top 5 pages. Add the numbers to each bar. Decrease font size of marks", explain=True)
top_performing_pages_fig.show()
# Top 5 performing pages on stable by date
top_pages_by_date_fig = vizro_ai.plot(df, "Collate rows of data for Path where Version==stable. Create a line graph for the total Views per Date for the top 5 Paths", explain=True)
top_pages_by_date_fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment