Skip to content

Issue with writing CSV in Python

I am reading and XLSX file. and looping over the rows and colums to remove all the clutter from the excel. When I print full_data_row it prints the string with , so that is correct. When i check my csv file. I get this as an ouput: header1,header2,header3 O,p,z,e,t, ,h,o,s,t,e,d, Answer csvwriter.writerow() e…

Iterate over and index a list?

I am trying to iterate over a string that has many repeated characters in order to reorganize it into a list with each character replaced with a 3 letter code and its index+1. So I want to reorganize: Into: This is just an example string, and the final one will be ~300 characters long. Thanks for any advice! …

Install opencv-python module

I’m trying to install the opencv module without success, I think the problem is related to the version of python I’m using. Indeed I upgraded to the 3.9.1 version but when I’m trying to install the module, I still receive a warning referred to the old version of python I had (i.e. 2.7). How …