If I print a row in a CSV I get this result:
,,,,,,,some text,1781786000,
How can I check if an element row[2] has value?Is this correct if I check if element row[2] is empty:
if row[2] =! '':
print row[2]
or
if row[2] =! None:
print row[2]
How can I check if any of elements for row[0] till row[5] have no value so they are just ,, ?
let's suppose that in row[0:6] there's only one element that has a value others are empty, how can I make a condition that checks which element from row[0:6] has value?
or to andif row[2] =! '' and row[2] != None:since both condition arefalsy valuesyou could doif row[2]if row[2]=!is a SyntaxError. Use a loop to check all columns, or use theanyfunction.