Article Directory
- 1. Description:
-
- 2. Take a problem I found and find a solution:
-
- 0. Install the module `xlrd`
- 1. Solve the problem of which line is the starting line:
- 2. Solve the problem of merged cells in the table:
- 3. Combine 1 and 2 to solve the problem, get a line that automatically recognizes the starting data and extract the data.
- 4. Python xlrd XLRDError: Workbook is encrypted solution (excel protected solution)
1. Description:
I need to extract the Excel table data today, but I haven’t done it before, and then I found the xlrd module, but there is a problem that needs to be solved:
1. If there is too much data in the Excel table, how to determine where to start reading the Excel data in the first row .
2. If there is a merged table in the Excel table, you cannot directly read the data line by line, otherwise there will be a merged area (except for the cell that sits on, the other cells are empty strings).