Skip to content

Instantly share code, notes, and snippets.

@painhardcore
Created November 16, 2015 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save painhardcore/c0912243326b45a0e4bd to your computer and use it in GitHub Desktop.
Save painhardcore/c0912243326b45a0e4bd to your computer and use it in GitHub Desktop.
excel parsing
# -*- coding: utf-8 -*-
import xlrd
rb = xlrd.open_workbook('OSTATKI_R.XLS',formatting_info=True,encoding_override="cp1251")
sheet = rb.sheet_by_index(0)
vals = [sheet.row_values(rownum) for rownum in range(sheet.nrows)]
for x in vals:
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment