samedi 1 mai 2021

Python if returns true and false

When i write this

for column in nutri_data.columns:
    if type(nutri_data[column][0]) != 'str':
        print(isinstance(nutri_data[column][0], str))

it returns:

True False False False False False False False False False False False False False

Why please?

Aucun commentaire:

Enregistrer un commentaire