on-internet
← Community

Preserving all Excel formatting when opening, updating and saving a (simple) xlsx file

Stack Overflow ·

I have a simple Excel (*.xlsx) file with "virtual cards" which I use it to study a language. The file is very simple -- it has 1 sheet, 1 workbook, 3 columns with text, no index/header and up to 3000 rows. Each row is for one word; two columns in a row have a word and its meaning in English, and the third column has a "difficulty level" index. A python script uses pandas to open the file (df.read_excel()), shuffles the rows, shows randomly column 1 or 2 from row N, and then I press a numeric button (1-5) to change the difficulty level of a row and save the file (to_excel()). I create and edit

Comments

Sign in or sign up to comment and upvote.

No comments yet.