This is the code i have used
iname = \"name1\"
ipassword = \"password1\"
iemail = \"email@domain.com\"
res1 = []
A good way is to create an empty list first, populate it and then add to the empty data frame like this
data=[]
for i, row in new_df.head(4).iterrows():
sequence=str(row['body'])
author=row['author']
data.append([author,sequence])
d=pd.DataFrame(data,columns = ['author', 'results'])
it will give the results like this