What is the best way to get the value of a cell in relation to another cell?
I have the below list of identifiers and also the below csv file (not dataframe):
list = ['ABC0123', 'DEF0123']
> Column 1 Column 2 Column 3 Column 4
> "Date" 20170101 "Identifier" ABC0123
>"OpenPrice" 500 "Currency" USD
>"ClosePrice" 550 "foo" bar
> ...
> ...
> ...
> "Date" 20170101 "Identifier" DEF0123
>"OpenPrice" 600 "Currency" USD
>"ClosePrice" 650 "foo" bar
I want to get the close prices for the identifiers, e.g 550 and 650, while parsing the file, looking for the identifiers and then move 2 down and 2 to the left.
"Close Price" repeats itself and I want to get the values for a list of identifiers. Also iloc and loc only gets the values in the same row, so what is the easiest way to get the values?