AttributeError: 'float' object has no attribute 'isnull' code example
Example: 'numpy.float64' object has no attribute 'isnull'
for element in my_series:
if type(element) == float and pd.isna(element):
print('do A')
else:
print('do B')