I'm currently writing a python script that cleans and order the data of a csv file , the script works fine but one problem remains which is to verify if the cell is empty or contains just a space like " "
this the condition that i've tried but it didn't work
k is a list
if k[i][j] is " " or k[i][j] is None :
print('this cell is empty ',k.index(k[i][j]))
i expected that the condition will return the index of the cell but it didn't I'm wodering how to fix this problem ? thank you in advance