in reply to Editing an existing excel

G'day thonny,

Welcome to the Monastery.

It seems to me that you've taken code from elsewhere and just added it to your script without understanding what it does.

So, there's seven things you can look at and potentially improve.

Now, for us to provide you with help, you need to tell us what the problem is. Show us a few representative lines from the uncompressed input.txt.gz file. Show us how those lines appear in the spreadsheet. Show us how you really wanted those lines to appear in the spreadsheet.

I also suggest you read "How do I post a question effectively?" to see the type of information that we need, and how to present it (e.g. verbatim error messages within <code>...</code> tags).

— Ken

Replies are listed 'Best First'.
Re^2: Editing an existing excel
by thonny (Initiate) on Oct 26, 2021 at 10:50 UTC
    I will improve on the suggestions given. The problem I am facing is, with the script I have, it deletes the existing histogram in the excel file. The input.txt.gz file looks something like this:
    0.1 0.2 0.3 0.4 0.5
    Those lines should just appear in the column A of excel sheet. I wish I can attach image here butI cannot. Hope you can understand what I am trying to say.