0 votes
1 view
in BI by (17.6k points)

Following is my code snippet:

writer = pd.ExcelWriter(path_file, engine= 'openpyxl')

df.to_excel(writer, index= False)

df.to_excel(writer, startrow= len(df), index= False)


df has all the data I need to append.

I have a master excel sheet that is linked to a Tableau workbook.

I have pulled a large amount of data into data frames, and I want to be able to append the data frames to the existing master excel sheet.

The problem right now it is just completely overwriting the file and creating a new copy.

Any Ideas??

1 Answer

0 votes
by (47.2k points)
  • You can use csvtools. Free command-line utilities for working with CSV files.


  • You could use in2csv to convert Excel to CSV, and csvstack to combine multiple CSV files. Basically, csvkit is written in Python and plays well with Python, but can be used as a standalone suite of tools. It follows the same design approach as the simple Unix command-line tools.

Related questions

0 votes
1 answer
asked Jul 22, 2019 in Python by Eresh Kumar (27.2k points)
+3 votes
2 answers
0 votes
1 answer
asked Jul 30, 2019 by Rajesh Malhotra (14.3k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !