From f8992fe7f5a4e39c75148474c7cbcf2e36a26676 Mon Sep 17 00:00:00 2001 From: jebesson2 Date: Mon, 9 May 2022 14:06:18 +0000 Subject: [PATCH] Update script2.py --- script2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script2.py b/script2.py index 99335ec..432af07 100644 --- a/script2.py +++ b/script2.py @@ -17,7 +17,7 @@ try : #Delete all the lines which has no data curs.execute('''DELETE FROM CO_DEUX WHERE emission = 0''') - curs.execute('''DELETE FROM CO_DEUX WHERE code LIKE "NaN"''') + curs.execute('''DELETE FROM CO_DEUX WHERE code LIKE 'NaN' ''') #Chart that picture the evolution of the emission in France fig = df.plot(x="annee", y="emissions", legend=False, style='-')