get rows as value pandas code example
Example 1: fetch row where column is equal to a value pandas
df.loc[df['column_name'] == 'value']
Example 2: pandas return specific row
df.iloc[1] # replace index integer with specific row number
df.loc[df['column_name'] == 'value']
df.iloc[1] # replace index integer with specific row number