I am trying to iterate using a data frame that has null values ββfor column = [myCol]. I can iterate using a data frame, however, when I specify, I want to see only null values, I get an error.
The ultimate goal is that I want to force a value into the fields that are Null, so I repeat to identify which are the first.
for index,row in df.iterrows(): if(row['myCol'].isnull()): print('true') AttributeError: 'str' object has no attribute 'isnull'
I tried to specify the column = "No", because this is the value that I see when printing an iteration of the data frame. Not lucky yet:
for index,row in df.iterrows(): if(row['myCol']=='None'): print('true') No returned rows
Any help is much appreciated!
Ariel source share