Код: Выделить всё
name, ColB, ColC, ColD
P1, 1,1,1
P2, 0,1,0
P3, 1,1,0
...
df1 = pd.read_csv(filepath_or_buffer='file.csv', header=[0])
df1['name'].str.lower()
name_to_search = 'p1'
row_indx1 = df1.index.get_loc(df1[df1['name'] == name_to_search].index[0]) # error line
Подробнее здесь: https://stackoverflow.com/questions/790 ... -dataframe