<jupyter_start><jupyter_text>Life ExpectancyAnalysing the Life expectancy at birth, total (years). Data source – [World Bank](https://data.worldbank.org/indicator/SP.DYN.LE00.IN) (License : CC BY-4.0).<jupyter_code>%matplotlib inline

import pandas as pd
import numpy as np
ls data/life_expectancy/
!head data/life_expectancy/API_SP.DYN.LE00.IN_DS2_en_csv_v2.csv
df = pd.read_csv("data/life_expectancy/API_SP.DYN.LE00.IN_DS2_en_csv_v2.csv", header=2, index_col=[0,1,2, 3])
df.head()
life_expectancy = df.groupby(level=0).first().transpose()
life_expectancy.head()
list(life_expectancy.columns)[:10]
life_expectancy_subset = life_expectancy[['United States', 'Germany', 'Russian Federation', 'China', 'South Africa']]
life_expectancy_subset.tail(10)
life_expectancy_subset.plot()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14108910891089108, 'fraction_numerical': 0.027227722772277228, 'mean_word_length': 7.793478260869565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '297745', 'license': 'MIT', 'n_tokens_mistral': 319, 'n_tokens_neox': 305, 'n_words': 51, 'path': 'life_expectancy.ipynb', 'repo_name': 'deleyva/Jupyter-Notebook-for-Data-Science', 'size': '808'}