|
|
|
@ -23,12 +23,9 @@ try :
|
|
|
|
|
df3 = pd.read_sql('''SELECT * FROM CO_DEUX WHERE code LIKE 'FRA' AND year BETWEEN 2000 AND 2017;''',con=co)
|
|
|
|
|
|
|
|
|
|
#Chart that picture the evolution of the emission in France
|
|
|
|
|
print("test")
|
|
|
|
|
print(df3)
|
|
|
|
|
fig = df3.plot(x='year', y='emission', legend=False, style='-')
|
|
|
|
|
print("test")
|
|
|
|
|
fig.set_title("Quantité d'émission (tonnes) en fonction des années")
|
|
|
|
|
print("test")
|
|
|
|
|
fig.set_xlabel("annee")
|
|
|
|
|
fig.set_ylabel("emissions (en tonnes)")
|
|
|
|
|
fig.set_xticks(df3.index)
|
|
|
|
|