Categories
Development

creating an array basedon dataframe values

If i have an id that has a start date = 1988 and end date as = 2018 and value = 21100 and i want to create a array or dataframe of the dates from 1988 – 2018 i.e (1988,1989,1990…2018) with each date = to the same value of 21100
So i basically want something that looks like:

date, id1
1988, 21100
1989, 21100
1990,21000 
...
2018,21100

how could i do this? I want the array to start populating the value based on the start date and to end populating based on the end date

Leave a Reply

Your email address will not be published. Required fields are marked *