I have extracted multiple data from file and now I want to create a dataframe of my data of interest. I have tried following way:
anticodon = re.findall(r'(at.\w\w-\w\w)', line)
for line in anticodon:
anticod = line.replace('at ', '')
import pandas as pd
df1 = pd.DataFrame({'id': [m_id], 'cod': [anticod]})
print df1
* similar way I have extraced m_id
But in output I only get last row of both columns not the entire column. How can I get complete data?