1
I have a Dataframe in pandas containing a listing with values similar to these:
a e r
0 88 6 -496
1 8 2 -188
2 76 5 -482
3 78 4 24
4 19 1 -346
5 40 1 -346
6 61 0 -224
7 79 1 -346
8 64 4 24
9 86 0 -224
10 47 1 -346
11 49 0 -224
I would like to perform a procedure similar to Excel "procv" for column values e
in relation to column r
(filter single column values and check corresponding values for column r):
Ex:
0 -224
1 -346
2 -188
4 24
5 -482
6 -496
find the unique values of e
I could see:
df['e'].unique()
but I’m unable to filter the values of r
and generate a dataframe with the results.
Thank you very much!
It worked perfectly, thank you very much!
– Leonardo Grando