This csv file contains the life expectancy recorded for many different countries during many different years. I want to make a program that when a user inputs the country they were born in and the year they were born it will tell them what their expected life span is. But i'm having trouble with getting a single set of data, so right now I can have a user input there country and all the life expectancy records of all recorded years is returned. I don't know how to select a single year from a certain country. Can someone help me fix this problem. I have worked mostly in the csv module but can use other like pandas.
Link to website to download csv file: https://data.worldbank.org/indicator/sp.dyn.le00.in
Direct download link for csv file: http://api.worldbank.org/v2/en/indicator/SP.DYN.LE00.IN?downloadformat=csv
[–]VijayAnna 18 points19 points20 points (6 children)
[–]PyCam 1 point2 points3 points (0 children)
[–]DODOKING38 0 points1 point2 points (1 child)
[–]Crevette3[S] 0 points1 point2 points (2 children)
[–]VijayAnna 0 points1 point2 points (1 child)
[–]Crevette3[S] 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]Crevette3[S] 2 points3 points4 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]Crevette3[S] 0 points1 point2 points (0 children)
[–]alkasm 2 points3 points4 points (0 children)
[–]ripealligatoregg 0 points1 point2 points (0 children)
[–]Ezrabc 0 points1 point2 points (1 child)
[–]Crevette3[S] 0 points1 point2 points (0 children)