Open ajtucker opened 3 years ago
Straightforward transform (reading a csv is easy).
To give a quick steer on what I think is needed here in lieu of a formal spec.
[Gas, Year, Value]
.csv
of the gas names before and after pathify()
for a gas codelist.total
under the gas
column.[Geographic Coverage, "inclusions-exclusions", Gas, Year, Value]
.csv
for Geographic Coverage, "inclusions-exclusions" before and after pathify
. Will use the same codelist for gas as above.[Sector, Subsector, Gas = "All", Year, Value]
csv
for Sector and Subsector together, linking the "child" subsector in one column to the "parent" in another column. e.g., Energy Supply
-> Power Stations
and include before and after pathify
.Note that the hierarchy is actually in three bits in some cases, e.g., Transport
.
In this case, Passenger Cars
would be linked to its parent, Road
, and Road
would be linked to its parent Transport
, and Transport
would be linked to its parent Total
.
Gas = carbon-dioxide
for table 4, Gas = methane
for table 5 etc.Will need DM attention to determine how to handle NC category stuff, also whether to include gas forms into fuel code list or to have a separate code list; be that local or family.
@RedWalters
Gasses are their own codelist imo.
NC Category is what I refer to as subsector
above, sorry for not being so explicit!
I can't run main.py
at the moment though happy to talk this through if more direction is needed.
BA comments Transformation looks fine, notwithstanding known issues and following observations: