How can I skip first several lines of the Excel sheet?

前端 未结 2 1327
别那么骄傲
别那么骄傲 2020-12-20 07:59

Using openpyxl I tried to read from the fifth line for some files. The files\' first four lines are the header. Then the main content has a different format fro

2条回答
  •  礼貌的吻别
    2020-12-20 08:30

    You can pass a range into ws.iter_rows('A4:Z256') but you're probably better off using ws.get_squared_range(1, 5,)

提交回复
热议问题