["Entity", "Code", "Year", "Central death rate - Type: period - Sex: both - Age: 0", "Central death rate - Type: period - Sex: both - Age: 10", "Central death rate - Type: period - Sex: both - Age: 25", "Central death rate - Type: period - Sex: both - Age: 45", "Central death rate - Type: period - Sex: both - Age: 65", "Central death rate - Type: period - Sex: both - Age: 80"]
2. load data->dataframe
Code
df=@pipe CSV.File("./data/annual-death-rates-in-different-age-groups.csv")|>DataFramecats=names(df)rename!(df, "Central death rate - Type: period - Sex: both - Age: 0"=>:age0,"Central death rate - Type: period - Sex: both - Age: 10"=>:age10,"Central death rate - Type: period - Sex: both - Age: 25"=>:age25,"Central death rate - Type: period - Sex: both - Age: 45"=>:age45,"Central death rate - Type: period - Sex: both - Age: 65"=>:age65,"Central death rate - Type: period - Sex: both - Age: 80"=>:age80 )first(df,10)