<jupyter_start><jupyter_text>Health Adjusted Life Expectancy<jupyter_code>import pandas as pd
health_adj_url = 'https://open.canada.ca/data/en/dataset/f72615e7-25c1-4a7e-87bc-7214d2c90e83'
health_adj_lifeexp = pd.read_csv('../data/HealthAdjLifeExp.csv').set_index('Region')
health_le_data = health_adj_lifeexp<jupyter_output><empty_output><jupyter_text>Bar Plot<jupyter_code>from matplotlib import rcParams
import matplotlib.style as style

%matplotlib inline
style.use('fivethirtyeight')
def health_adjusted_life_expectancy(data):

    rcParams['font.family'] = 'sans-serif'
    rcParams['font.sans-serif'] = ['Calibri']
    chart_data = data.rename(index={'Canada':''}).sort_values('Male')
    ax = chart_data.plot.barh(figsize=(8,10), grid=True);
    ax.set_ylabel('')
    ax.set_title('Health Adjusted Life Expectancy', fontsize=23, fontweight='bold')
    ax.set_xlim((58,74))
    ax.xaxis.set_tick_params(labelsize=17,)
    ax.yaxis.set_tick_params(labelsize=17)
    ax.text(x=56.25, y=9.85, s='Canada', fontsize=16, fontweight='bold')

health_adjusted_life_expectancy(health_le_data)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1456657730116175, 'fraction_numerical': 0.03932082216264522, 'mean_word_length': 7.0, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '404860', 'license': 'MIT', 'n_tokens_mistral': 460, 'n_tokens_neox': 429, 'n_words': 51, 'path': 'notebooks/LifeExpectancy-Chart.ipynb', 'repo_name': 'Oadegbite/OpenCanadaData', 'size': '1119'}