Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created March 17, 2018 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillKoehrsen/0db2657479d447ce2cf5c9aba2dfefde to your computer and use it in GitHub Desktop.
Save WillKoehrsen/0db2657479d447ce2cf5c9aba2dfefde to your computer and use it in GitHub Desktop.
# Create the blank plot
p = figure(plot_height = 600, plot_width = 600,
title = 'Histogram of Arrival Delays',
x_axis_label = 'Delay (min)]',
y_axis_label = 'Number of Flights')
# Add a quad glyph
p.quad(bottom=0, top=delays['flights'],
left=delays['left'], right=delays['right'],
fill_color='red', line_color='black')
# Show the plot
show(p)
@calvincodes
Copy link

'flights' column reference in delays DF at Line 8 is incorrect. It should instead be
p.quad(bottom=0, top=delays['arr_delay'], left=delays['left'], right=delays['right'], fill_color='red', line_color='black')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment