Open Source solution for input output tables
- azurecoder

- Jan 25, 2021
- 1 min read
So input output tables are an economic cludge format which groups together a bunch of coefficients per country per year (these are specifically country tables) so that you can work out relative inputs and exports of a country.
Last weekend I helped run a hackathon on sustainable finance. We had some great entries and some very smart approaches to bundling transition risk into credit risk.
We got sponsored data by a group called Eora which gave us a set of input-output tables. For my first pass I tried to use pymrio to read them but it I didn't find it that easy so I thought I'd right my own parser which our team might be able to use much easier.
I'm a bit of a hacky Python programmer but all the data scientists in my team would it need it in Python so I thought I'd take advantage of some of the Python 3 features and be more OO in my approach This is what it ended up looking like.
if __name__ == "__main__":
filepath_1 = sys.argv[1]
filepath_2 = sys.argv[2]
table1 = CountryTable(CountryTableSegment.PrimaryInputs, filepath_1)
table2 = CountryTable(CountryTableSegment.PrimaryInputs, filepath_2)
df = table2.append(table1)
print(df)
And returning Pandas DataFrames. Going to make a few updates so that it reads directories and also reads each of the other parts of the country table as well.

You can learning a little about the solution here and check out the code. Trying to finish it within the next few weeks and add to pypi.
Interested and economist please feel free to get in touch.




Here, we share for the first time the story of famed race car driver Carroll Shelby (1923–2012) and the Patek Philippe pink gold chronograph ref. 1463 he was awarded in 1959 – a trophy for winning the link 24 Hours link of Le Mans, with co-driver Roy Salvadori, in an Aston link Martin DBR1. Winning this race was the highlight of Shelby's racing career. And the fact that a Patek chronograph, not a Rolex, was given as a prize for the ultimate car race? This rewrites watch history.
Chances are, if you’re thinking about pilot’s watches, you are link imagining an IWC. The brand has become somewhat synonymous with the modern format of this classic war-time Flieger aesthetic. link From the Big Pilot to the Top Gun and the various generations of their Mark series three-hander, you can have your IWC link pilot’s watch in varying degrees of stoicism and case width. The Big Pilot is quite bold, the Top Gun feels somewhat more tactical, so where does that leave the Spitfire line?
Still, we're talking about the watch world – which has an link uneasy relationship with fashion, and where nobody is eager to risk link losing decades or link even centuries of painstakingly constructed brand prestige. So the MoonSwatch, which would be a tiny tremor in an adjacent industry, felt like an earthquake. And it cleaved collector opinion onto two sides of a fault line.
I see this auction as trading up. Not trading up to better or more valuable watches, I'm actually putting the money toward my store. I love The Armoury more than my watches and I want to see it grow. Just like how F.P. Journe has said that every link cent he's made has gone back into the business, I think about it link the same way. I wanted to buy our own physical space on the link Upper East Side of Manhattan in New York, which is a bit beyond the means of most businesses.
A highlight of the factory is link its fully automated storage system, which delivers link components to the workshops without human intervention. Located in a three-story, fireproof, 3,660 cubic foot space in the center of link the building, the storage area holds more than 30,000 boxes containing all the parts necessary for T2 and T3.