Как найти, какой столбец содержит определенное значение?
#python #pandas #dataframe Вопрос: У меня есть фрейм данных, подобный этому: test = pd.DataFrame({"id":[1,2,3,4], "name_1":["peter","bobby","alex","chris"], "name_1_flag":["real","fake","fake","real"], "name_2":["hector","abi","henrik","miko"], "name_2_flag":["fake","real","fake","fake"], "name_3":["hans","khan","will","than"], "name_3_flag":["fake","fake","real","fake"]}) id name_1 name_1_flag name_2 name_2_flag name_3 name_3_flag 0 1 peter…