Created
March 17, 2018 14:13
-
-
Save WillKoehrsen/0db2657479d447ce2cf5c9aba2dfefde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'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')