text_plain_output_1.png
import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/data.csv')

def make_histogram(column, bins=None, kde=False, norm_hist=False):
    """
    This function returns a seaborn histogram based on an inputted dataset column.
    :param column: column of dataset
    :param bins: list of bin values of the histogram
    :param kde: boolean of fitting kernel density estimate 
    :param norm_hist: boolean of normalizing histogram
    :returns: histogram of the column
    """
    return sns.distplot(df[column], bins=bins, kde=kde, norm_hist=norm_hist)
age_histogram = make_histogram('Age')