I wish to read pandas DataFrame element by element, but it seems below code doesn't work!
import pandas as pd
df = pd.DataFrame()
df1 = pd.DataFrame({"A": [2,3,4]})
df2 = pd.DataFrame({"B": [5,6,7]})
df = pd.concat([df1, df2], axis=1)
for row in df.iterrows():
print row['A'], row['B']
What's the right way to access it element by element?
applymap()