text_html_output_1.png
from datetime import date

import pandas as pd

customer_data = pd.read_csv('../input/customer-personality-analysis/marketing_campaign.csv', sep='\t', index_col='ID')

customer_data.shape

customer_data.isnull().sum()

customer_data_cleaned = customer_data.dropna()

from datetime import date
def get_age(birthyear):
    return date.today().year - birthyear
ages = customer_data_cleaned.Year_Birth.map(get_age)
customer_data_cleaned['Age'] = customer_data_cleaned.Year_Birth.map(get_age)
customer_data_cleaned.Age.describe()