import pandas as pd df = pd.DataFrame(np.zeros((8, 8)) df.index = [1, 2, 3, 4, 5, 6, 7, 8] df.columns = [1, 2, 3, 4, 5, 6, 7, 8] df[0][0] = "word" Now I want to find the position of the string "word",so something like df.function[df == "word"]. And I want the return to be [0, 0] for position
How do I do this?