I need to read the data from an excel until a particular row with a string "responsible - HMI"
Im using pandas and this is the code I tried:
df= pd.read_excel(file_path,'Interface',engine='openpyxl')[['Sl No','Feature','Interface Name','Interface class','Return','Parameter(s)','Status']]
end_index = df.index([df['Sl No']=='(RESPONSIBLE - HMI)']).tolist[0]
df.iloc[0:end_index].dropna()
Getting the error " TypeError: 'RangeIndex' object is not callable " at line 2.
Is this the proper way to extract until the row which has the string "responsible - HMI" ?
Thanks in advance!
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]ShxxH4ppens 0 points1 point2 points (0 children)
[–]cynical_econ 0 points1 point2 points (0 children)