How do I read an Excel file in Python?
I have found a package to read excel file, which can be used on any
platform.
I installed and working on the examples, I found its printing of cell's
contents in a different manner.
print sh.row(rx)
[text:u'name', text:u'address' , text:u'ph']
[text:u'sudhir', text:u'bangalor e', number:1234.0]
[text:u'vinay', text:u'bangalor e', number:3264.0]
I am bit confused with slicing. help me....
Thank you,
Regards,
Sudhir.
I have found a package to read excel file, which can be used on any
platform.
I installed and working on the examples, I found its printing of cell's
contents in a different manner.
>>import xlrd
>>book=xlrd.ope n_workbook("Cal culation_file.x ls")
>>book=xlrd.ope n_workbook("tes tbook.xls")
>>sh=book.sheet _by_index(0)
>>for row in range(sh.nrows) :
>>book=xlrd.ope n_workbook("Cal culation_file.x ls")
>>book=xlrd.ope n_workbook("tes tbook.xls")
>>sh=book.sheet _by_index(0)
>>for row in range(sh.nrows) :
[text:u'name', text:u'address' , text:u'ph']
[text:u'sudhir', text:u'bangalor e', number:1234.0]
[text:u'vinay', text:u'bangalor e', number:3264.0]
I am bit confused with slicing. help me....
Thank you,
Regards,
Sudhir.
Comment