Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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

This comment has been minimized.

Copy link

@calvincodes calvincodes commented Nov 8, 2019

'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