In [ ]:
import pandas as pd
import matplotlib.pyplot as plt
%pylab inline

In [ ]:
data = pd.read_csv("hubble_data.csv")
data.head()

In [ ]:
headers = ["dist","rec_vel"]

data_no_headers = pd.read_csv("hubble_data_no_headers.csv", names = headers)

data_no_headers.head()

In [ ]:
data_no_headers["dist"]

In [ ]:
data.set_index("distance", inplace= True)

In [ ]:
data.head()

In [ ]:
data.plot()
plt.show()

In [ ]: