In [ ]:
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
In [8]:
df = pd.read_excel('2011_Current_Table1.xlsx')
In [9]:
df.shape
Out[9]:
In [10]:
df.head()
Out[10]:
In [22]:
airports = pd.concat([df['citymarketid_1'], df['citymarketid_2']])
In [23]:
len(np.unique(airports))
Out[23]:
In [47]:
from_nyc = df[df['city1'].str.contains('NY')]
In [55]:
from_nyc_to_or = from_nyc[from_nyc['city2'].str.contains('OR')]
In [1]:
plt.figure();
df.fare.plot(kind='bar'); plt.axhline(0, color='k')
In [ ]: