I am currently trying to subtract subtract a specific range of a list from a specific value in the list. This is easy enough however, the data is stored in an index and I am unsure of how to access the list within the index to complete the subtraction.
Below is the code I have written with images of the index and lists I want to access.
dfos_delta_zero = dfos_delta[:]
for i in range(len(dfos_delta_zero)):
for j in range(len(dfos_delta_zero[i][0:200])):
dfos_delta_zero[i][j]= dfos_delta_zero[i][j]-dfos_delta_zero[i][0]
The dfos_delta_zero function holding 4 lists One of the lists in the array that I am trying to subtract one value from the list from each point Thanks!
The main issue I am having is I want to subtract multiple parts of the list separately like point 0-200 from point 0 an point 201-400 from point 201. Any tips would be great!