diff --git a/README.org b/README.org index 2bfa113..be666ab 100644 --- a/README.org +++ b/README.org @@ -25,25 +25,27 @@ done #+RESULTS: -*** Cumulative CO2 +*** Cumulative CO2 emissions Source: https://ourworldindata.org/grapher/cumulative-co-emissions #+begin_src bash :results output replace csvs-to-sqlite \ - --shape 'Entity:entity(text),Code:code(text),Year:year(integer),"Cumulative CO2 emissions":cumulative_co2_emissions(real)' \ - -c entity -c code -i year \ + --shape 'Entity:entity(text),Code:code(text),Year:year(integer),Cumulative CO2 emissions:cumulative_co2_emissions(real)' \ + --extract-column entity,code \ + --index year \ + --replace-tables \ sources/cumulative_co2_emissions.csv dbs/climate.db #+end_src #+RESULTS: -: extract_columns=('entity', 'code') -: Loaded 0 dataframes +: extract_columns=('entity,code',) +: Loaded 1 dataframes : Added 1 CSV file to dbs/climate.db ** Pitalls -*** My Queries are slow, what do I do? +*** My queries are slow, what do I do? Make sure SQlite uses the correct indices. You can debug this by writing diff --git a/dbs/climate.db b/dbs/climate.db index e69de29..6b240c5 100644 Binary files a/dbs/climate.db and b/dbs/climate.db differ