I wish to find the exact value of the index for an input defined value of key in a dataframe, below is the code I am trying to do to get it.
data_who = pd.DataFrame({'index':data['index'], 'Publisher_Key':data['Key']})
Below is my O/P dataframe:
If suppose I give an input say 100 as the key value, I would like to get the O/P of the index value, which is Goat, what should I do in my code??
PS: Too many labels in the data after performing label encoding, so wanted to know the value of the labels corresponds to which category.