import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# show matlpotlib graphs in the same HTML page
%matplotlib inline
hdata = pd.read_csv("Heart_Disease_Not-Processed.csv")
hdata.head()
hdata.tail()
hdata.plot("age","trestbps",kind="scatter")
hdata.plot("age","thalach",kind="scatter")
hdata.plot()
hdata.plot()
hd1 = pd.read_csv("Heart_Disease_Data.csv")
hd1.head()
hd1.tail()
hdata.tail()
max(hd1.chol)
months = ["jan","feb","mar","apr","may"]
col = ["feb","jan","may","apr","mar"]
[months.index(m) for m in col]
hdata.columns
hdata.plot("chol","age", kind="scatter")
hdata.plot("chol","age", kind="scatter")