text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df = pd.read_csv('../input/framingham.csv')
df.drop(['education'], axis=1, inplace=True)

df.rename(columns={'male': 'Sex_male'}, inplace=True)

df.isnull().sum()

count = 0
for i in df.isnull().sum(axis=1):
    count = count + 1

df.dropna(axis=0, inplace=True)

def draw_histograms(dataframe, features, rows, cols):
    fig = plt.figure(figsize=(20, 20))
    for i, feature in enumerate(features):
        a = fig.add_subplot(rows, cols, i + 1)
        dataframe[feature].hist(bins=20, ax=a, facecolor='green')
        a.set_title(feature + 'Distribution', color='blue')
    fig.tight_layout()
    plt.show()
draw_histograms(df, df.columns, 6, 3)