I am trying to import txt file data into a dataframe. This is the code I used to load the textiles data then join them together in a dataframe.
import pandas as
n254_1=pd.read_csv('input_1.txt')
n254_2=pd.read_csv('input_2.txt')
daf=pd.DataFrame({'run1':[n254_1], 'run2':[n254_2]})
print("length of dataframe %i",len(daf))
print(daf)
The problem is that the resulting dataframe is not iterable. Morever, when I print the dataframe "daf", I get the following output: