简体   繁体   中英

Python: output variables onto existing excel sheet

I was wondering how to output using Python variables onto an existing excel sheet.

Given the excel column

[A] [B] [C] [D] [E] [F] [G] [H] [I] [J]

Note:

  • List item [A] [B] [C] [D] : are given in one excel file (text.xlsx)
  • I have strings on [E] [F] , [H] [I] (manipulations based on [A][B][C][D]) ready as a variable
  • I have an int (%) on [G] [J] (manipulations based on [A][B][C][D]) ready as a variable

For excel input, I am using xlrd , but I was wondering how do I output these variables onto the same/existing excel file ? Which library do I use?

There are python packages available to work with Excel files that will run on any Python platform and that do not require either Windows or Excel to be used. They are fast, reliable and open source like openpyxl , xlsxwriter .

Also this may help to you to update existing excel file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM