text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df = pd.read_csv('../input/colorectal-cancer-patients/crc.txt', sep='\t')
df

df = df.drop('Unnamed: 9', axis=1)
df = df.drop('Unnamed: 10', axis=1)
df = df.drop('Unnamed: 11', axis=1)
df = df.drop(index=62, axis=0)
df

features_num = ['Age (in years)', 'DFS (in months)']

for f in features_num:
    fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(10, 7))
    ax1.hist(df[f])
    ax1.grid()
    ax1.set_title('Histogram of ' + f)
    ax2.boxplot(df[f], vert=False)
    ax2.grid()
    ax2.set_title('Boxplot of ' + f)
    plt.show()