Skip to content

Instantly share code, notes, and snippets.

@jarus
Created August 1, 2012 09:20
Show Gist options
  • Save jarus/3225365 to your computer and use it in GitHub Desktop.
Save jarus/3225365 to your computer and use it in GitHub Desktop.
Excel in Python
import xlrd
# Example excel file under: http://d.pr/f/7ELQ
wb_addresses = xlrd.open_workbook('addresses.xls').sheet_by_index(0)
for rownum in range(wb_addresses.nrows):
print "%s: " % rownum,
row = wb_addresses.row_values(rownum)
for cell in row:
print cell,
print ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment