Python CSV get a value from a cell by value from previous columns
Considering values are unique, I would store the csv on a pandas dataframe, and then iterate over every row on the dataframe. If column 1 value and column 2 values are the ones you know, then return the z value from that exact row.
That should do it, tell me if u need further help!
Can I find a value from Z column if I have two known values from X and Y?




X;
Y;
Z




A;
1;
syfgusj


A;
2;
adaddsfd


B;
1;
adsghfjgftrds


B;
2m;
adergtw


C;
1;
adergtw


C;
2;
addfgftre




Values in Y column are string type.
I should find value in Z column by known values from columns X and Y.
I converted CSV to list of lists, but can`t even imagine how to make next step.