We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 589a344 commit 15e4ff8Copy full SHA for 15e4ff8
2 files changed
read_excel.py
@@ -0,0 +1,11 @@
1
+import xlrd
2
+
3
+workbook = xlrd.open_workbook('D:\ToriCode\Python\sample.xlsx')
4
+sheet = workbook.sheet_by_index(0)
5
6
+for row in range(sheet.nrows):
7
+ values = []
8
+ for col in range(sheet.ncols):
9
+ cell_value = sheet.cell_value(row, col)
10
+ values.append(cell_value)
11
+ print(','.join(values))
sample.xlsx
9.23 KB
0 commit comments