Created
August 1, 2012 09:20
-
-
Save jarus/3225365 to your computer and use it in GitHub Desktop.
Excel in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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