Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xlrd
- workbook = xlrd.open_workbook('/Users/reallymemorable/Documents/output.xlsx')
- worksheet = workbook.sheet_by_name('Sheet1')
- num_rows = worksheet.nrows
- curr_row = 0
- #creates an array to store all the rows
- row_array = []
- while curr_row < num_rows:
- row = worksheet.row(curr_row)
- row_array += row
- curr_row += 1
- print(row_array[0])
- 09/30/2018-09/26/2018
- 09/25/2018-09/21/2018
- 09/20/2018-09/16/2018
- 09/15/2018-09/11/2018
- 09/10/2018-09/06/2018
- 09/05/2018-09/01/2018
- 08/31/2018-08/27/2018
Add Comment
Please, Sign In to add comment