Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save documentprocessing/7fc53c8bbcec1c0393f2e794d4864d83 to your computer and use it in GitHub Desktop.
Save documentprocessing/7fc53c8bbcec1c0393f2e794d4864d83 to your computer and use it in GitHub Desktop.
Update existing Column in XLS file with Pyexcel-XLS
import pyexcel as p
#open a sample Excel file
sheet = p.get_sheet(file_name="example.xls")
#update data in existing column
sheet.column[2] = ["Column 3", 100, 200, 300]
#Save XLS file to disc
sheet.save_as("updateexisting.xls")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment