Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> from openpyxl import load_workbook
>>> wb = load_workbook('callsheet.xlsx')
>>> wb.get_sheet_names()
[u'QuickbooksToPodio']
>>> ws = wb.get_active_sheet()
>>> ws.title
u'QuickbooksToPodio'
>>> print "first row has {} cells".format(len(next(ws.rows)))
first row has 12 cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment