Reputation: 81
Suppose I have an excel sheet with the fields 'URN' 'GUID', and 'CODE', along with a few other columns. Is there a way I can use the python pandas library to iterate through each row and pull out it's respective values for 'URN' 'GUID', and 'CODE'?
Upvotes: 0
Views: 1543
Reputation: 1624
I suppose you are just willing to read certain columns, from your excel file:
df = pd.read_excel(path_of_your_file, usecols=['URN', 'GUID', 'CODE'])
Then you can iterate through rows of df
Upvotes: 1