Python Forum
Pandas ExcelWriter path name rejected
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas ExcelWriter path name rejected
#1
I am trying to make devs aware of issue I ran into.
Basically, pd.ExcelWriter(output_path+'\\'+'HiT Nano battery title info2.xlsx',engine='xlsxwriter') is accepted. But, when I change the title to include anything including the string 'record' it was rejected. By rejected, I mean the file was created but I couldn't open it. Windows file explorer would tell me that the file is corrupted and python environment said something about a xls issue (even though everything else I could find clearly identified the file as xlsx).

I've already solved my issue by choosing another name, but this was weird enough that I wanted to post about it.

FYI, I know that excel files have length limits (in the 200s) but the full path named I used has 109 characters. Finally, I will mention that record is a variable name for a string and 'Record' is a key in a pd.DataFrame previously in the code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,581 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Error when Excelwriter saving a dataframe with datetime datatype with timezone klllmmm 3 15,378 Dec-08-2020, 11:37 AM
Last Post: Larz60+
  .pth file does not show up in sys.path when configuring path. arjunsingh2908 2 6,255 Jul-03-2018, 11:16 AM
Last Post: arjunsingh2908

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020