Logistic Regression on Coronary Heart Disease Data

Logistic Regression on Coronary Heart Disease data:

# Importing the required library
import pandas as pd
# Importing the dataset
chd = pd.read_csv("datasets/chd_data.csv")
# Printing the first 5 rows
chd.head()

# Importing the required library
import matplotlib.pyplot as plt
%matplotlib inline
# Plotting the 'chd' values against 'age' values
plt.scatter("age","chd",data=chd)
plt.xlabel("age")
plt.ylabel("chd")
plt.title("Age vs. Coronary Heart Disease")


Comments

Popular posts from this blog

Python Tokens

Pie Chart , Donut Plot, Area plot