I have a dataframe that's 13 columns by 557 rows. I've exported the data to excel, but I want to add the first row (the column names) every 56 rows so that when I print it, the header is at the top.
I've tried a bunch of things like .concat and .append but I'm a beginner with Pandas so I'm not very good
I have this near the end of my code to add the header, I have the right names in the list but it just messes everything up
header = []
for title in order:
header.append(title)
panda.iloc[2] = header
Note that header = ['Age', 'RK', 'Team', ...]