vendredi 15 mars 2019

If, And Statement not outputting accurate results in Python

df.loc[(df['Platform'] == 'A321') and (df['Days'] <= 14), 'Mods Applicable'] = 'CFM56 9th Stage Duct'

I'm trying to have the output of Platforms for A321 and Days less than or equal to 14 to print out the following 'Mods Applicable' but it's not ouputting that Platforms AND the Days.

Output results

Aucun commentaire:

Enregistrer un commentaire