text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

suicide = pd.read_csv('/kaggle/input/who-suicide-statistics/who_suicide_statistics.csv')

suicide['suicide_rate'] = suicide.suicides_no / suicide.population
suicide.columns.tolist()

suicide.groupby('sex').suicide_rate.mean()

suicide.groupby('year').suicide_rate.mean().idxmax()

suicide.groupby('age').suicide_rate.mean().sort_values().plot.barh()

suicide.groupby('country').size()