From your question it looks like you are using Python. Using Python and NumPy, and inflation values from here, we can calculate the present values by compounding the inflation rate from each year:
Python/NumPy code:
import numpy as np
# Years from the first year to present (beginning of 2018)
years = np.arange(2000,2018)
# Values from the first year to present (beginning of 2018)
values = np.array([50,100,150,200,250,300,350,400,450,500,550,0,0,0,0,0,0,0])*1.0
# Annual inflation rate, i.e. year-2001 dollars are worth (1-inflation[i]) relative to year-2000 dollars
inflationPercent = np.array([3.4,2.8,1.6,2.3,2.7,3.4,3.2,2.9,3.8,-0.4,1.6,3.2,2.1,1.5,1.6,0.1,1.3,2.1])
inflation = inflationPercent*0.01
# initialize array of present values
values2018 = values
for i in range(len(years)):
# only values from the current year or earlier get compounded
values2018[:i] *= (1+inflation[i])
# print final values
print(values2018)
This gives the following output for values2018
:
[ 71.18743903 138.49696309 204.47386283 266.50226501 324.36984544
376.4446949 425.56732304 472.65564131 512.27128754 571.47622439
618.72425869 0. 0. 0. 0.
0. 0. 0. ]