I recently asked a question here how can I read each line of a xls file with pausing and I got an answer which solved my problem. The code is as follows
import time
import pandas as pd
import os
import xlrd
# at first I try to know how many rows and how many columns I have
workbook = xlrd.open_workbook('myfile.xls')
for sheet in workbook.sheets():
for row in range(sheet.nrows):
for column in range(sheet.ncols):
os.system('clear')
print "value::: ", sheet.cell(row,column).value
time.sleep(5.5) # pause 5.5 seconds
what I want to do is to make the loop in a way that goes to the end of the row lines of the xls and then return the beginning over and over until I stop it or pause it for sometimes , do you know how to do this ?