It is like opposite of loc/iloc method, based on a value in df I want to extract the column and row index associated with it
Please share screenshot of problem
USE this i think it will help
df_name.loc[‘GarageArea’,GarageCars]
for iloc
df_name.iloc[index_row_number,index_col_num]
1 Like
Sir, this is the opposite of what I want. I don’t want the value, I want the column and row index based on a particular value
select_indices = list(np.where(df["GarageCars"] == 0.082)[0])
df.iloc[select_indices]
or
df['GarageCars'].loc[lambda x: x==0.082].index