I want to extract the entire row values as list from df
when column equal something.
I tried
df.loc['column'== x]
but it gives the column headers and not a list
Basically I want is to parse through each row in df and get the entire row as list when df['column']==x .The column I am parsing is the first column (company name). For company x I would like to get the list of the values in all columns (I don't want the company name and the column names to be in the list. I just want the values). ps:There are no duplicates in the company names