ExcelWriter and local files

data-grassroots
New Contributor III

I have a couple things going on here.

First, to explain what I'm doing, I'm passing an array of objects in to a function that contain a dataframe per item. I want to write those dataframes to an excel workbook - one dataframe per worksheet. That part is working. Where I run into isues is when I attempt to append worksheets to an existing workbook (ExcelWriter mode='a' instead of 'w').

I've got a template workbook that lives out on DBFS that I copy local so I can append to it. See Limitations of Working with Files where it talks about Zip and Excel files and suggests working local and copying out to a Volume after.

I successfully copy the file locally and can copy it back out elsewhere if I comment out the ExcelWriter block.

With the ExcelWriter block in place and using the append mode I receive a FileNotFoundError telling me no such file exists. That error occurs in Pandas/io/common/get_handle() when it attempts to open the file.

Anyone know what's going on with Pandas not being able to see files on local_disk0?

FileNotFoundError: [Errno 2] No such file or directory