How to get value from dataframe using non-sequence index

Hello All…need a little help, i got stucked already. Cant find any solution online.
From the attached dataframe image i want to get the value 18 under “Wafer” column using the index 13. Have tried iloc and loc but not possible. Please guide me…thanks

image

Please don’t post pics. People usually don’t write code in Photoshop.

IMHO .loc works:

>>> indices = 1, 3, 5, 7,
>>> values = ((1,10), (2, 20), (3, 30), (4, 40))
>>> columns = 'Lot', 'Wafer',
>>> df = pd.DataFrame(values, index=indices, columns=columns)
>>> df
   Lot  Wafer
1    1     10
3    2     20
5    3     30
7    4     40
>>> df.loc[5, 'Wafer']
30
1 Like

We can only understand what went wrong when you tried to use these, if we see how you tried.

Thanks a lot for the help…it works…thanks again