Python - How to read row by row input_table (all the columns)

Hi,

 

I am trying to iterate row by row (all the columns) of the input_table.

 

I know that I can read all the rows of a specific column by: 

names = input_table['names']

for name in names:

  xxxxx

 

However, I couldn't find a way to iterate row by row (including all the columns in the iteration and not just one). It will great if someone can help me here.

 

Thanks!

Here is a short example:

for index, row in input_table.iterrows():
    print index + '\t' + row['columnA'] + '\t' + row['columnB']

Cheers,

Patrick