Hello,
I have some code that displays the dataframe in excel, however, the headers and index show too. I do not want them to show. Is there a way to prevent this from happening. This code sits below data, so the index and headers are not helpful.
Use df.values
. That returns a numpy array of just the values, effectively removing the index and headers as you return it to Excel.
1 Like
Thank you, this did the trick.