(Oct-15-2018, 07:01 PM)nilamo Wrote:(Oct-15-2018, 06:45 PM)WuchaDoin Wrote: imp_df.loc[each_rec]Try printing that out inside your loop, so you can make sure it's actually what you expect it to be. It looks like the headers are being added to each row.
That is a stellar idea. It frustrates me that I overlooked that idea. I'll see what I get. Thank you very much.
You were right. It seems my headers are getting placed repeatedly. The data prints fine, but the headers are colliding with the data (I am assuming).
I removed the headers to see what it would do and sure enough, the headers don't affect the data. It seems the headers from the DataFrame are getting repeated as well as not falling in the right column. I just can't figure out what to add/edit.