Python: How to check if cell in CSV file is empty?

后端 未结 6 1322
天命终不由人
天命终不由人 2020-12-17 02:40

I have a CSV file that I\'m reading in Python and I want the program to skip over the row if the first column is empty. How do I do this?

Right now I have:



        
6条回答
  •  生来不讨喜
    2020-12-17 03:07

    After hour of trying I was able to do it

    while act_tab.cell(row=i, column=1).value is not None:
        ...
    

提交回复
热议问题