image_output_1.png
import pandas as pd

life = pd.read_csv('/kaggle/input/life-expectancy-who-updated/Life-Expectancy-Data-Updated.csv')

life[['Adult_mortality', 'Infant_deaths', 'Under_five_deaths']] = life[['Adult_mortality', 'Infant_deaths', 'Under_five_deaths']] / 10

min_year = life['Year'].min()
max_year = life['Year'].max()
print('Time frame of this data : {}-{}'.format(min_year, max_year))
region = life['Region'].unique()
print('Regions in this data : ', region)
print('Country in North America : ')
print(life[life['Region'] == 'North America']['Country'].unique())
print('Country in Asia : ')
print(life[life['Region'] == 'Asia']['Country'].unique())
print('Consist of ', len(life['Country'].unique()))