Skip to content

Tag: python

unzip operation taking several hours

I am using the following shell script to loop over 90 zip files & unarchive them on a Linux box hosted with Hostinger (Shared web hosting) The python script being called by the above shell script is below – Irrespective of whether I use the inbuilt unzip command or a python, it’s taking about …

Adding strings to a formatted string

I’m trying to add on to a string that is going into excel. But what’s actually going into my cell in my sheet is: The single quotes should be around the entire str(i), why is only the number getting the single quotes? Answer Not sure I understand the issue, but I also wasn’t able to reproduc…

Split a string from a textfile correctly

i have a file (“text.txt”) with several lines (~5000000 lines). I’m trying to split a line so that: becomes this two lines: so essentially i want to transform a single line into two lines and write it back to another file. All the lines that has to be split starts with the character “&…

Gspread batch update traceback

I am having problems trying to prepopulate google sheets filter and then do a batch_update. I get correct execution, the table is imported, filters are created. When the batch update occurs, I get a traceback that I don’t understand. I thought that the traceback may have come from the way I coded the sh…