vendredi 2 octobre 2020

Checking for elements in Dataframe output

I created a python code to extract some data and I set certain conditions. Now, I want to check my output to see if my conditions have been processed correctly. For i.e I want to know if a number of accounts appear in my output. Following is what I did but doesn't seem to be right.

account = 502-4549643 if account in df: print('Element exists in df')

Aucun commentaire:

Enregistrer un commentaire