I have a df with a column containing floats (transaction values). I would liek to iterate trough the column and only print the value if it is not nan. Right now i have the following condition.
if j > 0:
print(j)
i += 1
else: i += 1
where i is my iteration number.
I do this because I know that in my dataset there are no negative values and that is my workaound, but I would like to know how it would be done correctly if I would have nagative values. so what would be the if condition ?
I have tried j != None and j != np.nan but it still prints all nan.