dimanche 3 mars 2019

Apply the IF loop correctly

I receive a Syntax error for if (league['revenu_max'] == 0

league = pd.read_csv (r'C:\Users\yemond\Desktop\League_projection.csv')
league['Revenu_min'] = league['Prix_inscription']* league['Registration']
league['Revenu_max'] = league['Prix_inscription']* league['Max_registration']
if(league['revenu_max'] == 0) 
    print(league['revenu_min'])
print (league)

Aucun commentaire:

Enregistrer un commentaire