There is a DataFrame from pandas:
import pandas as pd
inp = [{'e2':20, 'e3':200}, {'e2':22,'e3':220}, {'e2':23,'e3':230}]
df = pd.DataFrame(inp)
print df
The output it showed:
e2 e3
0 20 200
1 22 220
2 23 230
After this I want iterate over the rows of this frame. I want to access the elements by the name of the columns. E.x.
for row in df.rows:
print row['e2'], row['e3']
Can I do this in Pandas?
Select the correct answer from above options