Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Import the libraries
import matplotlib.pyplot as plt
import seaborn as sns
# matplotlib histogram
plt.hist(flights['arr_delay'], color = 'blue', edgecolor = 'black',
bins = int(180/5))
# seaborn histogram
sns.distplot(flights['arr_delay'], hist=True, kde=False,
bins=int(180/5), color = 'blue',
# Add labels
plt.title('Histogram of Arrival Delays')
plt.xlabel('Delay (min)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment